diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-24 03:21:44 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-24 03:21:44 +0200 |
commit | a759d964e40d160d901052ec90e53c5acbe60355 (patch) | |
tree | 7b84764c40b49d662412ed7e9f3e3cd62544eee1 /tests/t0050-mv-tests.sh | |
parent | 31119bfcd019bf6820450664f2dbbe70340d20d8 (diff) | |
download | pass-a759d964e40d160d901052ec90e53c5acbe60355.tar.gz pass-a759d964e40d160d901052ec90e53c5acbe60355.tar.bz2 pass-a759d964e40d160d901052ec90e53c5acbe60355.zip |
Turns out aliases were a bad idea.
Diffstat (limited to '')
-rwxr-xr-x | tests/t0050-mv-tests.sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/t0050-mv-tests.sh b/tests/t0050-mv-tests.sh index 9362666..7110d7e 100755 --- a/tests/t0050-mv-tests.sh +++ b/tests/t0050-mv-tests.sh @@ -6,41 +6,41 @@ test_description='Test mv command' INITIAL_PASSWORD="bla bla bla will we make it!!" test_expect_success 'Basic move command' ' - pass init $KEY1 && - pass git init && - pass insert -e cred1 <<<"$INITIAL_PASSWORD" && - pass mv cred1 cred2 && + "$PASS" init $KEY1 && + "$PASS" git init && + "$PASS" insert -e cred1 <<<"$INITIAL_PASSWORD" && + "$PASS" mv cred1 cred2 && [[ -e $PASSWORD_STORE_DIR/cred2.gpg && ! -e $PASSWORD_STORE_DIR/cred1.gpg ]] ' test_expect_success 'Directory creation' ' - pass mv cred2 directory/ && + "$PASS" mv cred2 directory/ && [[ -d $PASSWORD_STORE_DIR/directory && -e $PASSWORD_STORE_DIR/directory/cred2.gpg ]] ' test_expect_success 'Directory creation with file rename and empty directory removal' ' - pass mv directory/cred2 newdirectory/cred && + "$PASS" mv directory/cred2 newdirectory/cred && [[ -d $PASSWORD_STORE_DIR/newdirectory && -e $PASSWORD_STORE_DIR/newdirectory/cred.gpg && ! -e $PASSWORD_STORE_DIR/directory ]] ' test_expect_success 'Directory rename' ' - pass mv newdirectory anotherdirectory && + "$PASS" mv newdirectory anotherdirectory && [[ -d $PASSWORD_STORE_DIR/anotherdirectory && -e $PASSWORD_STORE_DIR/anotherdirectory/cred.gpg && ! -e $PASSWORD_STORE_DIR/newdirectory ]] ' test_expect_success 'Directory move into new directory' ' - pass mv anotherdirectory newdirectory/ && + "$PASS" mv anotherdirectory newdirectory/ && [[ -d $PASSWORD_STORE_DIR/newdirectory/anotherdirectory && -e $PASSWORD_STORE_DIR/newdirectory/anotherdirectory/cred.gpg && ! -e $PASSWORD_STORE_DIR/anotherdirectory ]] ' test_expect_success 'Multi-directory creation and multi-directory empty removal' ' - pass mv newdirectory/anotherdirectory/cred new1/new2/new3/new4/thecred && - pass mv new1/new2/new3/new4/thecred cred && + "$PASS" mv newdirectory/anotherdirectory/cred new1/new2/new3/new4/thecred && + "$PASS" mv new1/new2/new3/new4/thecred cred && [[ ! -d $PASSWORD_STORE_DIR/newdirectory/anotherdirectory && ! -d $PASSWORD_STORE_DIR/new1/new2/new3/new4 && -e $PASSWORD_STORE_DIR/cred.gpg ]] ' test_expect_success 'Password made it until the end' ' - [[ $(pass show cred) == "$INITIAL_PASSWORD" ]] + [[ $("$PASS" show cred) == "$INITIAL_PASSWORD" ]] ' test_expect_success 'Git is consistent' ' |