Commit 1af7caa4 by Gert Wollny Committed by Commit Bot

Capture/Replay: Add suffix to label for test file search

When tests are run with a wildcard filter on the backend, e.g. "TEST/ES2_Vulkan*" the same tests from different backends may end up in the same trace file directory, e.g. TEST_ES2_Vulkan and TEST_ES2_Vulkan_SwiftShader. So far, when searching for the ES2_Vulkan trace files the check for trace files would them also pick up all the _SwiftShader files, and the skript would assume that the file count is wrong and skip the replay. By adding "_capture" the start of the commonly used suffix, this is avoided and replays are no longer skipped because mis-counting capture files. Bug: angleproject:5972 Change-Id: I7af54aaf51ee7070333ffe81974d866bd89dbd6f Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2897236 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 022401f9
......@@ -457,7 +457,7 @@ class Test():
def CanRunReplay(self, trace_folder_path):
test_files = []
label = self.GetLabel()
label = self.GetLabel() + "_capture"
assert (self.context_id == 0)
for f in os.listdir(trace_folder_path):
if os.path.isfile(os.path.join(trace_folder_path, f)) and f.startswith(label):
......
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