aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xtests/setup.sh7
-rwxr-xr-xtests/t0005-init-failing.sh11
2 files changed, 6 insertions, 12 deletions
diff --git a/tests/setup.sh b/tests/setup.sh
index 3b9e089..d6ba203 100755
--- a/tests/setup.sh
+++ b/tests/setup.sh
@@ -28,7 +28,12 @@ fi
# Note: the assumption is the test key is unencrypted.
export GNUPGHOME=$(pwd)"/gnupg/"
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()
#
diff --git a/tests/t0005-init-failing.sh b/tests/t0005-init-failing.sh
deleted file mode 100755
index e5864ff..0000000
--- a/tests/t0005-init-failing.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/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