summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2016-09-08 12:07:33 -0400
committerBernard Normier <bernard@zeroc.com>2016-09-08 12:07:33 -0400
commitdef8933bfb6f0c8f25301e28ccd94fe05ba7d894 (patch)
treebf1001dc8152a5554ab79734b24910df31cd3c96 /scripts/TestUtil.py
parentICE-7321 - Java cross-test failure in Ice/objects (diff)
parentMoved IceGridGUI to com.zeroc (diff)
downloadice-def8933bfb6f0c8f25301e28ccd94fe05ba7d894.tar.bz2
ice-def8933bfb6f0c8f25301e28ccd94fe05ba7d894.tar.xz
ice-def8933bfb6f0c8f25301e28ccd94fe05ba7d894.zip
Merged IceGridGUI updates from 3.6 branch
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index a4cdb62a57b..991e4fda22a 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -540,7 +540,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:
@@ -604,7 +604,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 test and argument combinations.
expanded = []
@@ -678,14 +678,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: