collect any output of appveyor command

This commit is contained in:
Aman Gupta 2015-10-07 17:50:54 -07:00
commit f0793a6d97

View file

@ -174,7 +174,9 @@ proc addResult(r: var TResults, test: TTest,
("Skipped", "") ("Skipped", "")
else: else:
("Failed", "Expected:\n" & expected & "\n\n" & "Gotten:\n" & given) ("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) = proc cmpMsgs(r: var TResults, expected, given: TSpec, test: TTest) =
if strip(expected.msg) notin strip(given.msg): if strip(expected.msg) notin strip(given.msg):