password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit 6c7425b16895c6925c4f1ec875dac4576574b34c
parent 20081b546f371dcaee9ea2769f46e513bb39c275
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date:   Wed,  1 Mar 2017 14:35:11 -0800

tests: fix on OSX by not using the tr hack

Diffstat:
Mtests/TODO.txt | 1-
Mtests/t0010-generate-tests.sh | 4++--
Dtests/tr | 2--
3 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/tests/TODO.txt b/tests/TODO.txt @@ -2,7 +2,6 @@ * pass insert, pass ls * pass insert [with -e, with -m, without either] * pass insert, cp, mv, rm, generate [with -f, without -f, on existing] - * pass generate [with -n vs without -n] * git operations on all commands * Are empty folders pruned for rm, cp, mv, init (when "" is the argument) [with git, and without git] * Are git commits happening as planned? Are they being signed when signing is enabled? diff --git 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 diff --git a/tests/tr b/tests/tr @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "${FAKE_PWGEN_PASSWORD:-Hello World}"