Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: tools/run-tests.py

Issue 1416373005: [Swarming] Let test runner exit gracefully after test failures. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/testrunner/local/execution.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/run-tests.py
diff --git a/tools/run-tests.py b/tools/run-tests.py
index 7e3587989bb70e56454257c3487487fa6739ab22..e8c1b4d884b9e43d24a48dd018ccf262182335ba 100755
--- a/tools/run-tests.py
+++ b/tools/run-tests.py
@@ -788,6 +788,11 @@ def Execute(arch, mode, args, options, suites):
if num_tests == 0:
print("Warning: no tests were run!")
+ if exit_code == 1 and options.json_test_results:
+ print("Force exit code 0 after failures. Json test results file generated "
+ "with failure information.")
+ exit_code = 0
+
return exit_code
« no previous file with comments | « no previous file | tools/testrunner/local/execution.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698