Commit 078a2ba6 by Gert Wollny Committed by Commit Bot

Capture/Replay: Print capture and replay exe in verbose mode

When running the test script to capture and replay it is helpful to know the locations of the executables that are run to make it simpler to locate them for debugging. Bug: None Change-Id: Ia43bd9863e94058515d9023981863ad6c711285e Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2850640 Commit-Queue: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com>
parent 1da30524
...@@ -516,7 +516,11 @@ class TestBatch(): ...@@ -516,7 +516,11 @@ class TestBatch():
cmd = ['vpython', 'testing/xvfb.py', test_exe_path] cmd = ['vpython', 'testing/xvfb.py', test_exe_path]
else: else:
cmd = [test_exe_path] cmd = [test_exe_path]
cmd += ['--gtest_filter=%s' % filt, '--angle-per-test-capture-label'] filter_string = '--gtest_filter=%s' % filt
cmd += [filter_string, '--angle-per-test-capture-label']
if self.verbose:
info("Run capture: '{} {}'".format(test_exe_path, filter_string))
returncode, output = child_processes_manager.RunSubprocess( returncode, output = child_processes_manager.RunSubprocess(
cmd, env, timeout=SUBPROCESS_TIMEOUT) cmd, env, timeout=SUBPROCESS_TIMEOUT)
...@@ -575,6 +579,10 @@ class TestBatch(): ...@@ -575,6 +579,10 @@ class TestBatch():
env = os.environ.copy() env = os.environ.copy()
env['ANGLE_CAPTURE_ENABLED'] = '0' env['ANGLE_CAPTURE_ENABLED'] = '0'
env['ANGLE_FEATURE_OVERRIDES_ENABLED'] = 'enable_capture_limits' env['ANGLE_FEATURE_OVERRIDES_ENABLED'] = 'enable_capture_limits'
if self.verbose:
info("Run Replay: {}".format(replay_exe_path))
returncode, output = child_processes_manager.RunSubprocess([replay_exe_path], returncode, output = child_processes_manager.RunSubprocess([replay_exe_path],
env, env,
timeout=SUBPROCESS_TIMEOUT) timeout=SUBPROCESS_TIMEOUT)
......
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