From 59272fc6af05dfc603c9230dbded251344e2380c Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 23 Apr 2014 18:01:53 +0200 Subject: Use real pass location. --- tests/t0001-sanity-checks.sh | 2 +- tests/t0010-generate-tests.sh | 2 +- tests/t0020-show-tests.sh | 4 ++-- tests/t0050-mv-tests.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/t0001-sanity-checks.sh b/tests/t0001-sanity-checks.sh index 111f21d..e6be9ea 100755 --- a/tests/t0001-sanity-checks.sh +++ b/tests/t0001-sanity-checks.sh @@ -8,7 +8,7 @@ test_expect_success 'Make sure we can run pass' ' ' test_expect_success 'Make sure we can initialize our test store' ' - pass init $KEY1 && + $PASS init $KEY1 && [[ -e "$PASSWORD_STORE_DIR/.gpg-id" ]] && [[ $(cat "$PASSWORD_STORE_DIR/.gpg-id") == "$KEY1" ]] ' diff --git a/tests/t0010-generate-tests.sh b/tests/t0010-generate-tests.sh index 66660de..d717c00 100755 --- a/tests/t0010-generate-tests.sh +++ b/tests/t0010-generate-tests.sh @@ -4,7 +4,7 @@ test_description='Test generate' . ./setup.sh test_expect_success 'Test "generate" command' ' - pass init $KEY1 && + $PASS init $KEY1 && $PASS generate cred 19 && [[ $($PASS show cred | wc -m) -eq 20 ]] ' diff --git a/tests/t0020-show-tests.sh b/tests/t0020-show-tests.sh index 059f537..6bd0165 100755 --- a/tests/t0020-show-tests.sh +++ b/tests/t0020-show-tests.sh @@ -4,8 +4,8 @@ test_description='Test show' . ./setup.sh test_expect_success 'Test "show" command' ' - pass init $KEY1 && - pass generate cred1 20 && + $PASS init $KEY1 && + $PASS generate cred1 20 && $PASS show cred1 ' diff --git a/tests/t0050-mv-tests.sh b/tests/t0050-mv-tests.sh index 10a33f8..57472c1 100755 --- a/tests/t0050-mv-tests.sh +++ b/tests/t0050-mv-tests.sh @@ -7,7 +7,7 @@ TEST_CRED="test_cred" TEST_CRED_NEW="test_cred_new" test_expect_success 'Test "mv" command' ' - pass init $KEY1 && + $PASS init $KEY1 && $PASS generate cred1 39 && $PASS mv cred1 cred2 && [[ -e $PASSWORD_STORE_DIR/cred2.gpg && ! -e $PASSWORD_STORE_DIR/cred1.gpg ]] -- cgit v1.2.3