summaryrefslogtreecommitdiff
path: root/tests/t0400-grep.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-24 03:21:44 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-24 03:21:44 +0200
commita759d964e40d160d901052ec90e53c5acbe60355 (patch)
tree7b84764c40b49d662412ed7e9f3e3cd62544eee1 /tests/t0400-grep.sh
parent31119bfcd019bf6820450664f2dbbe70340d20d8 (diff)
downloadpass-a759d964e40d160d901052ec90e53c5acbe60355.tar.gz
pass-a759d964e40d160d901052ec90e53c5acbe60355.tar.bz2
pass-a759d964e40d160d901052ec90e53c5acbe60355.zip
Turns out aliases were a bad idea.
Diffstat (limited to '')
-rwxr-xr-xtests/t0400-grep.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/t0400-grep.sh b/tests/t0400-grep.sh
index 0c55cf8..808a720 100755
--- a/tests/t0400-grep.sh
+++ b/tests/t0400-grep.sh
@@ -4,13 +4,13 @@ test_description='Grep check'
. ./setup.sh
test_expect_success 'Make sure grep prints normal lines' '
- pass init $KEY1 &&
- pass insert -e blah1 <<<"hello" &&
- pass insert -e blah2 <<<"my name is" &&
- pass insert -e folder/blah3 <<<"I hate computers" &&
- pass insert -e blah4 <<<"me too!" &&
- pass insert -e folder/where/blah5 <<<"They are hell" &&
- results="$(pass grep hell)" &&
+ "$PASS" init $KEY1 &&
+ "$PASS" insert -e blah1 <<<"hello" &&
+ "$PASS" insert -e blah2 <<<"my name is" &&
+ "$PASS" insert -e folder/blah3 <<<"I hate computers" &&
+ "$PASS" insert -e blah4 <<<"me too!" &&
+ "$PASS" insert -e folder/where/blah5 <<<"They are hell" &&
+ results="$("$PASS" grep hell)" &&
[[ $(wc -l <<<"$results") -eq 4 ]] &&
grep -q blah5 <<<"$results" &&
grep -q blah1 <<<"$results" &&