Skip to content

Commit

Permalink
CI: Tweaks to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Sep 15, 2020
1 parent 51d8705 commit 32a7736
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/shelley/test/integration/Main.hs
Expand Up @@ -91,7 +91,7 @@ import System.Directory
import System.Environment
( lookupEnv )
import System.Exit
( die )
( ExitCode (..), die, exitWith )
import System.FilePath
( (</>) )
import System.IO
Expand Down Expand Up @@ -217,6 +217,14 @@ specWithServer (tr, tracers) = aroundAll withContext . after tearDown
testPoolConfigs' <- poolConfigsFromEnv
withSystemTempDir tr' "test" $ \dir -> do
extraLogDir <- (fmap (,Info)) <$> testLogDirFromEnv

case extraLogDir of
Just (d, _) -> do
writeFile (d </> "foo.log") "Hello world"
putStrLn "Did write file!"
exitWith ExitSuccess
_ -> fail "TESTS_LOGDIR not set!"

withCluster
tr' -- TODO: Use testMinSeverityFromEnv
minSev
Expand Down

0 comments on commit 32a7736

Please sign in to comment.