summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-09-06 13:50:57 +0200
committerJose <jose@zeroc.com>2016-09-06 13:50:57 +0200
commitdbd7ec0180e03a1ca744ff7f4aab7bf87a3e37fa (patch)
tree9c27b947733ec94340c017fbdc45ad1c3a8f4877 /scripts
parentFixed ICE-7311 - handling of Java errors with AMD (diff)
downloadice-dbd7ec0180e03a1ca744ff7f4aab7bf87a3e37fa.tar.bz2
ice-dbd7ec0180e03a1ca744ff7f4aab7bf87a3e37fa.tar.xz
ice-dbd7ec0180e03a1ca744ff7f4aab7bf87a3e37fa.zip
ICE-7189 - normalize filter/rfilter input on Windows
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/TestUtil.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index 1eae8cdd77a..7ddb77922a9 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -505,7 +505,7 @@ def run(tests, root = False):
elif o in ("-l", "--loop"):
loop = True
elif o in ("-r", "-R", "--filter", '--rfilter'):
- testFilter = re.compile(a)
+ testFilter = re.compile(re.escape(os.path.normpath(a)))
if o in ("--rfilter", "-R"):
filters.append((testFilter, True))
else:
@@ -560,7 +560,7 @@ def run(tests, root = False):
arg += " " + a
if not root:
- tests = [ (os.path.join(getDefaultMapping(), "test", x), y) for x, y in tests ]
+ tests = [ (os.path.join(getDefaultMapping(), "test", os.path.normpath(x)), y) for x, y in tests ]
# Expand all the tests and argument combinations.
expanded = []
@@ -626,14 +626,14 @@ def run(tests, root = False):
for c in crossLang:
a = "--cross=%s --protocol=tcp %s" % (c, arg)
for test in crossTests:
- name = "%s/test/%s" % (lang, test)
+ name = os.path.join(lang, "test", test)
expanded.append([(name, a, testConfig(name, tests))])
# Add ssl & compress for the operations test.
if ((compact or mono) and c == "csharp") or (c == "js"): # Don't add the ssl tests.
continue
a = "--cross=%s --protocol=ssl --compress %s" % (c, arg)
- expanded.append([("%s/test/Ice/operations" % lang, a, [])])
+ expanded.append([(os.path.join(lang, "test", "Ice", "operations"), a, [])])
# Apply filters after expanding.
if len(filters) > 0: