Commit 967cb3b2 by Olli Etuaho

Fix perf_test_runner printing wrong test name

The previous version of the script would always print the default test name even if user specified a different one. BUG=angleproject:596 Change-Id: I43a07e81b49f69c7c372b46bd9494d6fe440b968 Reviewed-on: https://chromium-review.googlesource.com/319091Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
parent d39f8930
...@@ -76,12 +76,12 @@ if not os.path.exists(perftests_path): ...@@ -76,12 +76,12 @@ if not os.path.exists(perftests_path):
test_name = "DrawCallPerfBenchmark.Run/d3d11_null" test_name = "DrawCallPerfBenchmark.Run/d3d11_null"
print('Using test executable: ' + perftests_path)
print('Test name: ' + test_name)
if len(sys.argv) >= 2: if len(sys.argv) >= 2:
test_name = sys.argv[1] test_name = sys.argv[1]
print('Using test executable: ' + perftests_path)
print('Test name: ' + test_name)
# Infinite loop of running the tests. # Infinite loop of running the tests.
while True: while True:
output = subprocess.check_output([perftests_path, '--gtest_filter=' + test_name]) output = subprocess.check_output([perftests_path, '--gtest_filter=' + test_name])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment