on master help sign in
Print out messages during library testing
dc18803Max New
tests/libraries/LibraryTest.hs+4−2
@@ -43,7 +43,9 @@ main = do
43runCmd :: String -> [String] -> IO ()
43runCmd :: String -> [String] -> IO ()
44runCmd cmd args = do
44runCmd cmd args = do
45 putStrLn (cmd ++ " " ++ unwords args)
45 putStrLn (cmd ++ " " ++ unwords args)
46− (exitCode, _stdout, stderr) <- readProcessWithExitCode cmd args ""
46+ (exitCode, stdout, stderr) <- readProcessWithExitCode cmd args ""
47+ putStr stdout
48+ putStr stderr
47 case exitCode of
49 case exitCode of
48 ExitSuccess -> return ()
50 ExitSuccess -> return ()
49− ExitFailure _ -> error stderr
51+ ExitFailure _ -> exitWith exitCode