Commit 3f20c713 by Jamie Madill Committed by Commit Bot

Test Runner: Fix "--bot-mode" error level return value.

Previously the runner was returning "1" on success and "0" on failure. Swap this so that it correctly returns "0" on success and "1" on fail. This only affected "--bot-mode" which isn't yet enabled. Bug: angleproject:3162 Change-Id: I1ee942223272d24eff137279d5a0638d3a65694e Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2419639Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 93f58c15
......@@ -1262,7 +1262,7 @@ int TestSuite::run()
totalRunTime.stop();
printf("Tests completed in %lf seconds\n", totalRunTime.getElapsedTime());
return printFailuresAndReturnCount() == 0;
return printFailuresAndReturnCount() == 0 ? 0 : 1;
}
int TestSuite::printFailuresAndReturnCount() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment