add diagnostic message to all_tests.nim

This commit is contained in:
andri lim 2019-10-26 08:23:09 +07:00
parent 7a70cbeddc
commit a45792cede
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,10 @@ import macros, strutils, os, unittest, osproc
proc executeMyself(numModules: int): int =
let appName = getAppFilename()
for i in 0..<numModules:
result = result or execCmd(appName & " " & $i)
let execResult = execCmd(appName & " " & $i)
if execResult != 0:
stderr.writeLine("subtest no: " & $i & " failed")
result = result or execResult
proc getImportStmt(stmtList: NimNode): NimNode =
result = stmtList[0]