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 <enga@chromium.org>
Commit-Queue: Bryan Bernhart <bryan.bernhart@intel.com>
This commit is contained in:
Bryan Bernhart 2020-03-26 17:46:25 +00:00 committed by Commit Bot service account
parent 0847cb4637
commit 4b1be08ec9
1 changed files with 2 additions and 2 deletions

View File

@ -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)