relocate gpg test framework temp dir to outside repo

The gitAnnexTmpOtherDir cleanup made it be deleted too early sometimes,
and so the test suite failed. Also there was a report of a similar
failure which likely had a similar cause and hopwfully this fixes that
too.
This commit is contained in:
Joey Hess 2019-01-21 14:00:21 -04:00
parent f76c4a0973
commit f5f059e288
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 9 additions and 9 deletions

View file

@ -347,8 +347,8 @@ keyBlock public ls = unlines
#ifndef mingw32_HOST_OS
{- Runs an action using gpg in a test harness, in which gpg does
- not use ~/.gpg/, but sets up the test key in the passed directory
- and uses it. -}
- not use ~/.gpg/, but sets up the test key in a subdirectory of
- the passed directory and uses it. -}
testHarness :: FilePath -> GpgCmd -> IO a -> IO a
testHarness tmpdir cmd a = bracket setup cleanup (const a)
where