summaryrefslogtreecommitdiff
path: root/tests/t0200-edit-tests.sh
blob: 1dc125a281d66909966902c5f37d6b6b601320d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

test_description='Test edit'
cd "$(dirname "$0")"
. ./setup.sh

test_expect_success 'Test "edit" command' '
	"$PASS" init $KEY1 &&
	"$PASS" generate cred1 90 &&
	export FAKE_EDITOR_PASSWORD="big fat fake password" &&
	export EDITOR="$TEST_HOME/fake-editor-change-password.sh" &&
	"$PASS" edit cred1 &&
	[[ $("$PASS" show cred1) == "$FAKE_EDITOR_PASSWORD" ]]
'

test_done
r>2015-05-11critcal fix for cygwin: gpg output to stdout ("gpg -o -") would have been put...Lenz Weber1-1/+1 2015-05-11bashcomp: PASSWORD_STORE_DIR env var does not necessarily have a trailing slashSamuel Lethiec1-0/+2 2015-05-11lastpass importer: more types supported and better checkingRaphaël Droz1-3/+7 2015-05-11add support for passing arbitrary options to all invocations of GPGDavid Adam2-4/+7 2015-05-11Exit 1 when gpg fails in multiline too.Anne Jan Brouwer1-1/+1