From 4b1be08ec993dd8a858229abdfd33cb2ebb6a292 Mon Sep 17 00:00:00 2001 From: Bryan Bernhart Date: Thu, 26 Mar 2020 17:46:25 +0000 Subject: [PATCH] perf_tests: Update perf_test_runner format. CL#14740 modified the result format but the test runner script was never updated. This fixes the result format and metric check. Bug: dawn:208 Change-Id: I3a128b91e20ff8629b091ef4bf8fdd6fb616ba0e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/17921 Reviewed-by: Austin Eng Commit-Queue: Bryan Bernhart --- scripts/perf_test_runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/perf_test_runner.py b/scripts/perf_test_runner.py index 743824f07d..546bebdfc3 100755 --- a/scripts/perf_test_runner.py +++ b/scripts/perf_test_runner.py @@ -115,9 +115,9 @@ def get_results(metric, extra_args=[]): print(output) sys.exit(3) - pattern = metric + r'= ([0-9.]+)' + pattern = metric + r'.*= ([0-9.]+)' m = re.findall(pattern, output) - if m is None: + if not m: print("Did not find the metric '%s' in the test output:" % metric) print(output) sys.exit(1)