Skip to content
Snippets Groups Projects
Commit 14aa5aba authored by Jason A. Donenfeld's avatar Jason A. Donenfeld
Browse files

tests: emulate running agent

parent ec97be9a
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,12 @@ fi ...@@ -28,7 +28,12 @@ fi
# Note: the assumption is the test key is unencrypted. # Note: the assumption is the test key is unencrypted.
export GNUPGHOME=$(pwd)"/gnupg/" export GNUPGHOME=$(pwd)"/gnupg/"
chmod 700 "$GNUPGHOME" chmod 700 "$GNUPGHOME"
export PASSWORD_STORE_KEY=3DEEA12D # "Password-store Test Key" export PASSWORD_STORE_KEY="3DEEA12D" # "Password-store Test Key"
# We don't want to use any running agent.
# We want an agent to appear to pass to be running.
# We don't need a real agent. Hence:
export GPG_AGENT_INFO=" "
# pass_init() # pass_init()
# #
......
#!/bin/bash
test_description='Show "pass init" returning non-zero bug(?) (XXX: remove this test?)'
. ./setup.sh
test_expect_failure 'Show "pass init" returning non-zero' '
export PASSWORD_STORE_DIR="${SHARNESS_TRASH_DIRECTORY}/test-store/" &&
${PASS} init ${PASSWORD_STORE_KEY}
'
test_done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment