summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-06-06 19:34:14 +0800
committerOpportunityLiu <[email protected]>2019-06-06 19:34:14 +0800
commiteb7d9a02a1a848a576f2f87943f252d3f7027c39 (patch)
tree425068a3a861633463ddf87c2c076ca097575ebd
parent625ee243f954265baf280c4130ac96e331bd3e96 (diff)
fix test outcome
-rw-r--r--.appveyor.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 63cf3831b..8ccc26660 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -33,7 +33,8 @@ test_script:
xmake --version
Add-AppveyorTest -Name "tests" -Framework "xmake-test" -FileName ./tests/test.lua -Outcome Running
$time = Measure-Command {
- $stdout = Invoke-Expression "xmake lua --verbose --diagnosis tests\test.lua" -ErrorVariable stderr
+ $stdout = xmake lua --verbose --diagnosis tests\test.lua 2>&1
+ $outcome = if ($?) { "Passed" } else { "Failed" }
}
- Update-AppveyorTest -Name "tests" -Framework "xmake-test" -FileName ./tests/test.lua -Outcome Passed -Duration $time.Milliseconds -StdOut $stdout -StdErr $stderr
+ Update-AppveyorTest -Name "tests" -Framework "xmake-test" -FileName ./tests/test.lua -Outcome $outcome -Duration $time.Milliseconds -StdOut $stdout