Issue 50:
- Fix forgetting unquotes command substitution in function vcs_relative_path. - Using old test instead of new test in Makefile. - Fix some variables for Bob in "confidence_test.sh".
This commit is contained in:
4
Makefile
4
Makefile
@@ -67,8 +67,8 @@ unlock-rpm:
|
|||||||
#
|
#
|
||||||
|
|
||||||
confidence:
|
confidence:
|
||||||
@if [[ -e ~/.gnupg ]]; then echo ERROR: '~/.gnupg should not exist. If it does, bugs may polute your .gnupg configuration. If the code has no bugs everything will be fine. Do you feel lucky?'; false ; fi
|
@if [ -e ~/.gnupg ]; then echo ERROR: '~/.gnupg should not exist. If it does, bugs may polute your .gnupg configuration. If the code has no bugs everything will be fine. Do you feel lucky?'; false ; fi
|
||||||
@if which >/dev/null gpg-agent ; then pkill gpg-agent ; rm -rf /tmp/tmp.* ; fi
|
@if which >/dev/null gpg-agent ; then pkill gpg-agent ; rm -rf /tmp/tmp.* ; fi
|
||||||
@export PATH=~/gitwork/blackbox/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/local/bin ; tools/confidence_test.sh
|
@export PATH=~/gitwork/blackbox/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/local/bin ; tools/confidence_test.sh
|
||||||
@if which >/dev/null gpg-agent ; then pkill gpg-agent ; fi
|
@if which >/dev/null gpg-agent ; then pkill gpg-agent ; fi
|
||||||
@if [[ -e ~/.gnupg ]]; then echo ERROR: '~/.gnupg was created which means the scripts might be poluting GnuPG configuration. Fix this bug.'; false ; fi
|
@if [ -e ~/.gnupg ]; then echo ERROR: '~/.gnupg was created which means the scripts might be poluting GnuPG configuration. Fix this bug.'; false ; fi
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ function enumerate_subdirs() {
|
|||||||
function vcs_relative_path() {
|
function vcs_relative_path() {
|
||||||
# Usage: vcs_relative_path file
|
# Usage: vcs_relative_path file
|
||||||
local name="$1"
|
local name="$1"
|
||||||
python -c 'import os ; print(os.path.relpath("'$(pwd -P)'/'"$name"'", "'"$REPOBASE"'"))'
|
python -c 'import os ; print(os.path.relpath("'"$(pwd -P)"'/'"$name"'", "'"$REPOBASE"'"))'
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ eval $(gpg-agent --homedir "$fake_alice_home" --daemon)
|
|||||||
GPG_AGENT_INFO_ALICE="$GPG_AGENT_INFO"
|
GPG_AGENT_INFO_ALICE="$GPG_AGENT_INFO"
|
||||||
|
|
||||||
export GNUPGHOME="$fake_bob_home"
|
export GNUPGHOME="$fake_bob_home"
|
||||||
eval $(gpg-agent --homedir "$fake_alice_home" --daemon)
|
eval $(gpg-agent --homedir "$fake_bob_home" --daemon)
|
||||||
GPG_AGENT_INFO_BOB="$GPG_AGENT_INFO"
|
GPG_AGENT_INFO_BOB="$GPG_AGENT_INFO"
|
||||||
|
|
||||||
function become_alice() {
|
function become_alice() {
|
||||||
@@ -127,8 +127,8 @@ function become_alice() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function become_bob() {
|
function become_bob() {
|
||||||
export GNUPGHOME="$fake_alice_home"
|
export GNUPGHOME="$fake_bob_home"
|
||||||
export GPG_AGENT_INFO="$GPG_AGENT_INFO_ALICE"
|
export GPG_AGENT_INFO="$GPG_AGENT_INFO_BOB"
|
||||||
git config --global user.name "Bob Example"
|
git config --global user.name "Bob Example"
|
||||||
git config --global user.email bob@example.com
|
git config --global user.email bob@example.com
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user