summaryrefslogtreecommitdiff
path: root/tests/t0200-edit-tests.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-06-29 01:44:41 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-06-29 01:45:54 +0200
commit9ed79aacd5ef54b9f19f0b91c000f13f46ec76ab (patch)
tree231d6182d7871ed10b4169670b4d7d577a4a2e13 /tests/t0200-edit-tests.sh
parent4d53be77860a35db40bf616ef4c4b5d54dabb395 (diff)
downloadpass-9ed79aacd5ef54b9f19f0b91c000f13f46ec76ab.tar.gz
pass-9ed79aacd5ef54b9f19f0b91c000f13f46ec76ab.tar.bz2
pass-9ed79aacd5ef54b9f19f0b91c000f13f46ec76ab.zip
Allow options in EDITOR variable
This is required by most graphical editors, as the shell command they provide needs to be told to wait until the file has been closed. This reverts '311c98c9140205f32be2720db9261c67da658c4c'. We thus use PATH so that the tests still pass in directories with spaces.
Diffstat (limited to 'tests/t0200-edit-tests.sh')
-rwxr-xr-xtests/t0200-edit-tests.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/t0200-edit-tests.sh b/tests/t0200-edit-tests.sh
index 1dc125a..d8d7b64 100755
--- a/tests/t0200-edit-tests.sh
+++ b/tests/t0200-edit-tests.sh
@@ -8,7 +8,8 @@ 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" &&
+ export PATH="$TEST_HOME:$PATH"
+ export EDITOR="fake-editor-change-password.sh" &&
"$PASS" edit cred1 &&
[[ $("$PASS" show cred1) == "$FAKE_EDITOR_PASSWORD" ]]
'
>2-107/+1 2008-07-03Ported completelyRené 'Necoro' Neumann3-548/+54 2008-07-03Should show dependencies nowRené 'Necoro' Neumann2-82/+128 2008-07-03New plugin system - first hackRené 'Necoro' Neumann2-420/+683 2008-06-30Now the new design is able to do the same as the old oneRené 'Necoro' Neumann3-168/+182 2008-06-30First draft of the new plugin windowRené 'Necoro' Neumann1-8/+172 2008-06-30Added stuff to plugin.pyRené 'Necoro' Neumann1-2/+24 2008-06-25Now load 22 versions when running the correct portageRené 'Necoro' Neumann4-8/+18 2008-06-25Added Package_22 and System_22René 'Necoro' Neumann4-5/+63