File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Cabal/src/Distribution/Simple/Test Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ runTest pkg_descr lbi clbi flags suite = do
103
103
-- TODO: this setup is broken,
104
104
-- if the test output is too big, we will deadlock.
105
105
(rOut, wOut) <- Process. createPipe
106
- (_exitcode , logText) <- rawSystemProcAction verbosity
106
+ (exitcode , logText) <- rawSystemProcAction verbosity
107
107
(proc cmd' opts') { Process. env = Just shellEnv'
108
108
, Process. std_in = Process. CreatePipe
109
109
, Process. std_out = Process. UseHandle wOut
@@ -119,6 +119,7 @@ runTest pkg_descr lbi clbi flags suite = do
119
119
-- Force the IO manager to drain the test output pipe
120
120
_ <- evaluate (force logText)
121
121
return logText
122
+ unless (exitcode == ExitSuccess ) $ exitWith exitcode
122
123
123
124
-- Generate final log file name
124
125
let finalLogName l = testLogDir
You can’t perform that action at this time.
0 commit comments