diff options
author | Rolf Bjarne Kvinge <rolf@xamarin.com> | 2017-11-23 12:08:38 +0300 |
---|---|---|
committer | Rolf Bjarne Kvinge <rolf@xamarin.com> | 2017-11-23 12:11:03 +0300 |
commit | 2ca71f7d295670b7a4552a28006dee702b28fe3b (patch) | |
tree | 6c65dc0cc86f9b2e37cb99c9edf2895086b056ae | |
parent | d37c77a0647e68770542414b5ab64d1e27a41088 (diff) |
Don't set the exit code equal to the number of failed tests.
On linux/macOS the exit code is byte-sized, which means that if 256 tests
fails, the exit code would become 0.
-rw-r--r-- | src/framework/GuiUnit/TestRunner.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/framework/GuiUnit/TestRunner.cs b/src/framework/GuiUnit/TestRunner.cs index 56da295..d7d7a10 100644 --- a/src/framework/GuiUnit/TestRunner.cs +++ b/src/framework/GuiUnit/TestRunner.cs @@ -345,7 +345,7 @@ namespace GuiUnit private void RunTests(ITestFilter filter) { ITestResult result = runner.Run(this, filter); - ExitCode = result.FailCount; + ExitCode = result.FailCount > 0 ? 1 : 0; new ResultReporter(result, writer).ReportResults(); if (commandLineOptions.ResultFile != null) { |