diff options
author | James Crayne <jim.crayne@gmail.com> | 2016-04-25 23:00:26 -0400 |
---|---|---|
committer | James Crayne <jim.crayne@gmail.com> | 2016-04-26 06:04:05 -0400 |
commit | 65dcea26eb9cc44f321e219e65ee50ef7045b444 (patch) | |
tree | a231679bbc2f8fe16ce901a36c7f65e4040536fd /testkiki | |
parent | fa772dad6752b77d55a521322aa9228a35b9f977 (diff) |
testkiki, cokiki helper function
Diffstat (limited to 'testkiki')
-rw-r--r-- | testkiki/testkiki.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testkiki/testkiki.hs b/testkiki/testkiki.hs index 32c8284..4215637 100644 --- a/testkiki/testkiki.hs +++ b/testkiki/testkiki.hs | |||
@@ -154,6 +154,10 @@ doTests tkConfig = hspec $ do | |||
154 | unsetEnv "GNUPGHOME" | 154 | unsetEnv "GNUPGHOME" |
155 | return r | 155 | return r |
156 | 156 | ||
157 | cokiki config args = do | ||
158 | let args' = args ++ ["--chroot=" ++ chroot config, "--homedir=" ++ gnupghome config] | ||
159 | readProcess "./dist/build/kiki/kiki" args' "" | ||
160 | |||
157 | -- UTILS | 161 | -- UTILS |
158 | isInfixOf sub str = let (_,match) = B.breakSubstring (B.pack sub) (B.pack str) | 162 | isInfixOf sub str = let (_,match) = B.breakSubstring (B.pack sub) (B.pack str) |
159 | in not (B.null match) | 163 | in not (B.null match) |