summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2015-10-07 17:50:54 -0700
committerAman Gupta <aman@tmm1.net>2015-10-07 17:50:54 -0700
commitf0793a6d97164bbcba4145525fc5d1a64b6c14d7 (patch)
tree37fa56af6195acbcd75ec8bbef9c35f9ebf0c6cb /tests
parent7954fcfa9e1b6d8c5682b922b042566ba0d84465 (diff)
downloadNim-f0793a6d97164bbcba4145525fc5d1a64b6c14d7.tar.gz
collect any output of appveyor command
Diffstat (limited to 'tests')
-rw-r--r--tests/testament/tester.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/testament/tester.nim b/tests/testament/tester.nim
index 4d4bade00..5b315198d 100644
--- a/tests/testament/tester.nim
+++ b/tests/testament/tester.nim
@@ -174,7 +174,9 @@ proc addResult(r: var TResults, test: TTest,
         ("Skipped", "")
       else:
         ("Failed", "Expected:\n" & expected & "\n\n" & "Gotten:\n" & given)
-    discard execProcess("appveyor", args=["AddTest", test.name & test.options, "-FileName", test.cat.string, "-Outcome", outcome, "-ErrorMessage", msg, "-Duration", $(duration*1000).int], options={poStdErrToStdOut, poUsePath})
+    var p = startProcess("appveyor", args=["AddTest", test.name & test.options, "-FileName", test.cat.string, "-Outcome", outcome, "-ErrorMessage", msg, "-Duration", $(duration*1000).int], options={poStdErrToStdOut, poUsePath, poParentStreams})
+    waitForExit(p)
+    close(p)
 
 proc cmpMsgs(r: var TResults, expected, given: TSpec, test: TTest) =
   if strip(expected.msg) notin strip(given.msg):