aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/check_bench_regressions.py
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-28 17:55:51 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-28 17:55:51 +0000
commitcb3f07940c11beaf2ccd3bfe76c18994f0cc4154 (patch)
tree79bf9db893092f00db5e69c15ddb38b0079aa179 /bench/check_bench_regressions.py
parentcd00b9a74122d4a306840124179f576389d6a241 (diff)
Adds bench expectations to expectations/bench; fixes bench alert test's dependency on script line number.
BUG=skia:2307 NOTRY=true R=borenet@google.com Author: bensong@google.com Review URL: https://codereview.chromium.org/214913005 git-svn-id: http://skia.googlecode.com/svn/trunk@13979 2bbb7eff-a529-9590-31e7-b0007b416f81
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():