summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testsuite/driver/testlib.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index b0a19329cb..caa1bb1ed0 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -1626,11 +1626,6 @@ def simple_build(name: Union[TestName, str],
# ToDo: if the sub-shell was killed by ^C, then exit
- if isCompilerStatsTest():
- statsResult = check_stats(TestName(name), way, in_testdir(stats_file), opts.stats_range_fields)
- if badResult(statsResult):
- return statsResult
-
if should_fail:
if exit_code == 0:
stderr_contents = actual_stderr_path.read_text(encoding='UTF-8', errors='replace')
@@ -1640,6 +1635,11 @@ def simple_build(name: Union[TestName, str],
stderr_contents = actual_stderr_path.read_text(encoding='UTF-8', errors='replace')
return failBecause('exit code non-0', stderr=stderr_contents)
+ if isCompilerStatsTest():
+ statsResult = check_stats(TestName(name), way, in_testdir(stats_file), opts.stats_range_fields)
+ if badResult(statsResult):
+ return statsResult
+
return passed()
# -----------------------------------------------------------------------------