aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/check_bench_regressions.py
diff options
context:
space:
mode:
Diffstat (limited to 'bench/check_bench_regressions.py')
-rw-r--r--bench/check_bench_regressions.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bench/check_bench_regressions.py b/bench/check_bench_regressions.py
index 8f648dc2b0..86ead54957 100644
--- a/bench/check_bench_regressions.py
+++ b/bench/check_bench_regressions.py
@@ -175,7 +175,11 @@ def check_expectations(lines, expectations, key_suffix):
outputs.extend(['', header] + li)
if outputs:
- raise Exception('\n'.join(outputs))
+ # Directly raising Exception will have stderr outputs tied to the line
+ # number of the script, so use sys.stderr.write() instead.
+ # Add a trailing newline to supress new line checking errors.
+ sys.stderr.write('\n'.join(['Exception:'] + outputs + ['\n']))
+ exit(1)
def main():