Commit fa08cae7 by Jamie Madill Committed by Commit Bot

Make perf_test_runner Python 2.7 and 3 compatible.

BUG=None Change-Id: I915c99f21dc879a8e63955cd6a3dd892d05bbf5f Reviewed-on: https://chromium-review.googlesource.com/646590Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent be5e2ec3
...@@ -100,7 +100,8 @@ print('Test name: ' + test_name) ...@@ -100,7 +100,8 @@ print('Test name: ' + test_name)
# Infinite loop of running the tests. # Infinite loop of running the tests.
while True: while True:
output = subprocess.getoutput([perftests_path, '--gtest_filter=' + test_name]) process = subprocess.Popen([perftests_path, '--gtest_filter=' + test_name], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output, err = process.communicate()
start_index = output.find(metric + "=") start_index = output.find(metric + "=")
if start_index == -1: if start_index == -1:
......
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