summaryrefslogtreecommitdiff
path: root/tests/t0010-generate-tests.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-03-01 14:35:11 -0800
committerJason A. Donenfeld <Jason@zx2c4.com>2017-03-01 14:35:11 -0800
commit6c7425b16895c6925c4f1ec875dac4576574b34c (patch)
tree8a250535025df2e4f886d56044b22cdc01e3b166 /tests/t0010-generate-tests.sh
parent20081b546f371dcaee9ea2769f46e513bb39c275 (diff)
downloadpass-6c7425b16895c6925c4f1ec875dac4576574b34c.tar.gz
pass-6c7425b16895c6925c4f1ec875dac4576574b34c.tar.bz2
pass-6c7425b16895c6925c4f1ec875dac4576574b34c.zip
tests: fix on OSX by not using the tr hack
Diffstat (limited to '')
-rwxr-xr-xtests/t0010-generate-tests.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/t0010-generate-tests.sh b/tests/t0010-generate-tests.sh
index 09f4099..4c7ada9 100755
--- a/tests/t0010-generate-tests.sh
+++ b/tests/t0010-generate-tests.sh
@@ -12,8 +12,8 @@ test_expect_success 'Test "generate" command' '
test_expect_success 'Test replacement of first line' '
"$PASS" insert -m cred2 <<<"$(printf "this is a big\\npassword\\nwith\\nmany\\nlines\\nin it bla bla")" &&
- PATH="$TEST_HOME:$PATH" FAKE_PWGEN_PASSWORD="This is a fake password" "$PASS" generate -i cred2 23 &&
- [[ $("$PASS" show cred2) == "$(printf "This is a fake password\\npassword\\nwith\\nmany\\nlines\\nin it bla bla")" ]]
+ "$PASS" generate -i cred2 23 &&
+ [[ $("$PASS" show cred2) == "$(printf "%s\\npassword\\nwith\\nmany\\nlines\\nin it bla bla" "$("$PASS" show cred2 | head -n 1)")" ]]
'
test_done