From a4fd2d183a24e931d6eca75d7f6046550b5c1bb9 Mon Sep 17 00:00:00 2001 From: Matt Kwong Date: Wed, 20 Jun 2018 09:09:21 -0700 Subject: Fix test failure detection when doing RBE uploads --- tools/run_tests/python_utils/upload_rbe_results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/run_tests/python_utils/upload_rbe_results.py b/tools/run_tests/python_utils/upload_rbe_results.py index 7236227f7c..cbeb1ad941 100644 --- a/tools/run_tests/python_utils/upload_rbe_results.py +++ b/tools/run_tests/python_utils/upload_rbe_results.py @@ -161,7 +161,7 @@ if __name__ == "__main__": test_cases = action['testAction']['testSuite']['tests'][0][ 'testSuite']['tests'] for test_case in test_cases: - if 'errors' in test_case['testCase']: + if any(s in test_case['testCase'] for s in ['errors', 'failures']): result = 'FAILED' elif 'timedOut' in test_case['testCase']: result = 'TIMEOUT' -- cgit v1.2.3