Fixed out-of-order problems in the automated unit tests

This commit is contained in:
Louis Berube 2015-01-02 16:04:46 -05:00
commit f4c052eaca
3 changed files with 46 additions and 11 deletions

View file

@ -9,8 +9,13 @@ proc doCmd*(cmd: string) =
let bin = cmd.split(' ')[0]
if findExe(bin) == "":
raise newException(NimbleError, "'" & bin & "' not in PATH.")
# To keep output in sequence
stdout.flushFile()
stderr.flushFile()
let exitCode = execCmd(cmd)
if exitCode != QuitSuccess:
raise newException(NimbleError,
"Execution failed with exit code " & $exitCode)