diff options
author | Joey Hess <joey@kitenet.net> | 2012-01-07 12:38:08 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-01-07 12:38:08 -0400 |
commit | 60c1aeeb6fa106756c00e7bb18bbf311bd553fe1 (patch) | |
tree | d46eb17e9f156439396828370187da6ff4002161 /test.hs | |
parent | bdc49ddbdb32146356fe2040d08071d7ce963466 (diff) |
Fix overbroad gpg --no-tty fix from last release.
Only set --no-tty when GPG_AGENT_INFO is set and batch mode is used.
In the test suite, set GPG_AGENT_INFO to /dev/null to avoid the test suite
relying on /dev/tty.
Diffstat (limited to 'test.hs')
-rw-r--r-- | test.hs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -663,6 +663,8 @@ test_bup_remote = "git-annex bup remote" ~: intmpclonerepo $ when Build.SysConfi -- gpg is not a build dependency, so only test when it's available test_crypto :: Test test_crypto = "git-annex crypto" ~: intmpclonerepo $ when Build.SysConfig.gpg $ do + -- force gpg into batch mode for the tests + setEnv "GPG_AGENT_INFO" "/dev/null" True Utility.Gpg.testTestHarness @? "test harness self-test failed" Utility.Gpg.testHarness $ do createDirectory "dir" |