From fbcfe6931c808b93584640cb660672da4426e3f6 Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 25 Apr 2016 21:15:55 -0400 Subject: made a test pass. --- testkiki/testkiki.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'testkiki') diff --git a/testkiki/testkiki.hs b/testkiki/testkiki.hs index 0eb49f0..11653f2 100644 --- a/testkiki/testkiki.hs +++ b/testkiki/testkiki.hs @@ -96,8 +96,10 @@ doTests tkConfig = hspec $ do it "creates new secring in /root/.gnupg" $ do let kiki = kiki'No'Env'No'Home tkConfig + unsetEnv "GNUPGHOME" + createDirectoryIfMissing True (chroot tkConfig "root" ".gnupg") output <- kiki ["init"] - b <- doesFileExist (chroot tkConfig "root" "secring.gpg") + b <- doesFileExist (chroot tkConfig "root" ".gnupg" "secring.gpg") (isInfixOf "New packet" output && b ) `shouldBe` True where kiki'Env config args = do -- cgit v1.2.3