From fea074384f7fde69d7e08ddfbfdb6df33a967adb Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Mon, 16 Mar 2020 06:42:12 -0400 Subject: [PATCH] sometimes not all RBE results are uploaded --- tools/run_tests/python_utils/upload_rbe_results.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/run_tests/python_utils/upload_rbe_results.py b/tools/run_tests/python_utils/upload_rbe_results.py index 3220ce087d3..f5bf3ccc098 100755 --- a/tools/run_tests/python_utils/upload_rbe_results.py +++ b/tools/run_tests/python_utils/upload_rbe_results.py @@ -216,8 +216,9 @@ if __name__ == "__main__": elif 'tests' not in action['testAction']['testSuite']: continue else: - test_cases = action['testAction']['testSuite']['tests'][0][ - 'testSuite']['tests'] + test_cases = [] + for tests_item in action['testAction']['testSuite']['tests']: + test_cases += tests_item['testSuite']['tests'] for test_case in test_cases: if any(s in test_case['testCase'] for s in ['errors', 'failures']): result = 'FAILED'