1.7 test fails t0010-generate-tests.sh on OS X

isidoro carlo ghezzi isidoro.ghezzi at icloud.com
Tue Feb 28 15:32:43 CET 2017


Hi all

I downloaded the version 1.7, and `make test` fails:
```
$ make test
ok 1 - Make sure we can run pass
ok 2 - Make sure we can initialize our test store
# passed all 2 test(s)
1..2
ok 1 - Test "generate" command
not ok 2 - 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")" ]]
# 
# failed 1 among 2 test(s)
1..2
make: *** [tests/t0010-generate-tests.sh] Error 1
```

in details:

```
$ tests/t0010-generate-tests.sh -v
expecting success: 
"$PASS" init $KEY1 &&
"$PASS" generate cred 19 &&
[[ $("$PASS" show cred | wc -m) -eq 20 ]]

Password store initialized for CF90C77B
The generated password for cred is:
5NwpOZ}kyR>Q6%}A*W8
ok 1 - Test "generate" command

expecting success: 
"$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")" ]]

Enter contents of cred2 and press Ctrl+D when finished:

Usage: password-store.sh generate [--no-symbols,-n] [--clip,-c] [--qrcode,-q] [--in-place,-i | --force,-f] pass-name [pass-length]
not ok 2 - 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")" ]]
# 

# failed 1 among 2 test(s)
1..2
```

Same error both on OS X El Capitan, and macOS Sierra.

Best regards, Isidoro

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20170228/2e1f9530/attachment.html>


More information about the Password-Store mailing list