From 1079bb2e7bb5711dd5b7dc7f44f484034f5a8184 Mon Sep 17 00:00:00 2001 From: Jamie Madill Date: Thu, 17 Nov 2016 10:00:39 -0800 Subject: [PATCH] Fix up perf test runner script. The missing check was a bit buggy, and the paths were not updated to the new 'gyp' folder instead of 'build'. BUG=angleproject:1569 Change-Id: I10408252851e90b79e306c8aea175ebe6a931b61 Reviewed-on: https://chromium-review.googlesource.com/412320 Reviewed-by: Geoff Lang --- scripts/perf_test_runner.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/perf_test_runner.py b/scripts/perf_test_runner.py index 41ae40daa..f9d924b30 100644 --- a/scripts/perf_test_runner.py +++ b/scripts/perf_test_runner.py @@ -21,8 +21,8 @@ base_path = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file_ perftests_paths = [ os.path.join('out', 'Release_x64'), os.path.join('out', 'Release'), - os.path.join('build', 'Release_x64'), - os.path.join('build', 'Release_Win32') + os.path.join('gyp', 'Release_x64'), + os.path.join('gyp', 'Release_Win32') ] metric = 'score' @@ -72,16 +72,16 @@ newest_mtime = None for path in perftests_paths: binary_path = os.path.join(base_path, path, binary_name) - binary_mtime = os.path.getmtime(binary_path) if os.path.exists(binary_path): + binary_mtime = os.path.getmtime(binary_path) if (newest_binary is None) or (binary_mtime > newest_mtime): newest_binary = binary_path newest_mtime = binary_mtime perftests_path = newest_binary -if not os.path.exists(perftests_path): - print("Cannot find angle_perftests.exe!") +if perftests_path == None or not os.path.exists(perftests_path): + print("Cannot find Release angle_perftests.exe!") sys.exit(1) test_name = "DrawCallPerfBenchmark.Run/d3d11_null"