From 016edfaf8c3294864ef21fdf5dcfebb7fb514a7e Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 13 Jan 2015 17:37:16 +0100 Subject: [PATCH] Return whether unexpected_total is zero in run_tests. In the case of running tests in a loop, we calculate the total number of failures, but only return whether the last run failed. --- wptrunner/wptrunner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wptrunner/wptrunner.py b/wptrunner/wptrunner.py index 9fa8d3e6534f04..13510d8b8bf746 100644 --- a/wptrunner/wptrunner.py +++ b/wptrunner/wptrunner.py @@ -482,7 +482,7 @@ def run_tests(config, serve_root, test_paths, product, **kwargs): logging_thread.join(10) logging_queue.close() - return manager_group.unexpected_count() == 0 + return unexpected_total == 0 def main():