Commit 7ce3afa0 authored by machenbach's avatar machenbach Committed by Commit bot

[test] Make test filters platform-independent.

Use the same path separator for test cases on the cmd-line
on all platforms as in testcase.GetLabel, which is used to
report failures.

BUG=chromium:511215
LOG=n
NOTRY=true

Review URL: https://codereview.chromium.org/1281453003

Cr-Commit-Position: refs/heads/master@{#30045}
parent 9df592c1
......@@ -505,7 +505,7 @@ def Main():
else:
args_suites = OrderedDict() # Used as set
for arg in args:
args_suites[arg.split(os.path.sep)[0]] = True
args_suites[arg.split('/')[0]] = True
suite_paths = [ s for s in args_suites if s in suite_paths ]
suites = []
......
......@@ -221,7 +221,7 @@ class TestSuite(object):
globs = []
exact_matches = []
for a in args:
argpath = a.split(os.path.sep)
argpath = a.split('/')
if argpath[0] != self.name:
continue
if len(argpath) == 1 or (len(argpath) == 2 and argpath[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