summaryrefslogtreecommitdiffstats
path: root/testing/scripts
diff options
context:
space:
mode:
authorsimonhatch <simonhatch@chromium.org>2015-03-30 05:20:56 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-30 12:21:43 +0000
commit3e07b35cadffd610b382b3d263804ac45f7cb134 (patch)
tree59dbb390987fe50630b48a85d2626b46ec59690c /testing/scripts
parent1bbc9de3b6633404817907c2c170807ef6265319 (diff)
downloadchromium_src-3e07b35cadffd610b382b3d263804ac45f7cb134.zip
chromium_src-3e07b35cadffd610b382b3d263804ac45f7cb134.tar.gz
chromium_src-3e07b35cadffd610b382b3d263804ac45f7cb134.tar.bz2
Add .exe to first argument in gtest_perf_test.py.
Looks like runtest.py expects this with the ".exe" on windows. BUG=468176 Review URL: https://codereview.chromium.org/1020903004 Cr-Commit-Position: refs/heads/master@{#322764}
Diffstat (limited to 'testing/scripts')
-rwxr-xr-xtesting/scripts/gtest_perf_test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/scripts/gtest_perf_test.py b/testing/scripts/gtest_perf_test.py
index 6243a79..30f369f 100755
--- a/testing/scripts/gtest_perf_test.py
+++ b/testing/scripts/gtest_perf_test.py
@@ -11,6 +11,10 @@ import sys
import common
+def IsWindows():
+ return sys.platform == 'cygwin' or sys.platform.startswith('win')
+
+
def main_run(args):
filter_tests = []
if args.filter_file:
@@ -18,6 +22,8 @@ def main_run(args):
perf_id = args.properties.get('perf-id')
script_args = args.args
+ if IsWindows():
+ script_args[0] += '.exe'
test_suite = script_args[0]
with common.temporary_file() as tempfile_path: