filter out ExitSuccess
This avoids displaying the unexpected exit codes message when the list is eg [ExitSuccess, ExitFailure 1]. Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
parent
642703c7e4
commit
217798f3f1
3 changed files with 26 additions and 2 deletions
|
@ -744,8 +744,8 @@ parallelTestRunner' numjobs opts mkts
|
|||
exitcodes <- forConcurrently [1..numjobs] $ \_ ->
|
||||
worker [] nvar runone
|
||||
unless (keepFailuresOption opts) finalCleanup
|
||||
case nub (concat exitcodes) of
|
||||
[ExitSuccess] -> exitSuccess
|
||||
case nub (filter (/= ExitSuccess) (concat exitcodes)) of
|
||||
[] -> exitSuccess
|
||||
[ExitFailure 1] -> do
|
||||
putStrLn " (Failures above could be due to a bug in git-annex, or an incompatibility"
|
||||
putStrLn " with utilities, such as git, installed on this system.)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue