Fixed out-of-order problems in the automated unit tests
This commit is contained in:
parent
1ba199a1f6
commit
f4c052eaca
3 changed files with 46 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue