run-libcore-tests.py: Extend error regex
Add another vogar pattern to look for.
(to be included in the final summary)
Test: run-libcore-tests.py --mode=host
Change-Id: I634e271638b814c9155a1d4e402f1b565b335409
diff --git a/tools/run-libcore-tests.py b/tools/run-libcore-tests.py
index c120cb3..7a980c2 100755
--- a/tools/run-libcore-tests.py
+++ b/tools/run-libcore-tests.py
@@ -238,7 +238,7 @@
universal_newlines=True) as proc:
return test_name, cmd, proc.communicate()[0], proc.wait()
- failed_regex = re.compile(r"^.* FAIL \(EXEC_FAILED\)$", re.MULTILINE)
+ failed_regex = re.compile(r"^.* FAIL \((?:EXEC_FAILED|ERROR)\)$", re.MULTILINE)
failed_tests, max_exit_code = [], 0
with concurrent.futures.ThreadPoolExecutor(max_workers=args.jobs) as pool:
futures = [pool.submit(run_test, test_name) for test_name in get_test_names()]