summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2016-08-23 13:53:03 -0400
committerJoe George <joe@zeroc.com>2016-08-23 13:53:03 -0400
commit3d4f8bbdda31ea9e655e2564cde1c2578e7c5b65 (patch)
treef52c11a6ee1592535c1ce7fed5da2884920f541c /scripts/TestUtil.py
parentAnother fix for ICE-7284 (diff)
downloadice-3d4f8bbdda31ea9e655e2564cde1c2578e7c5b65.tar.bz2
ice-3d4f8bbdda31ea9e655e2564cde1c2578e7c5b65.tar.xz
ice-3d4f8bbdda31ea9e655e2564cde1c2578e7c5b65.zip
Fix ICE-7290
Client test path was incorrect when using --es5 flag
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index 4922715d568..28e17e7279e 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -1509,7 +1509,7 @@ def clientServerTest(cfgName = None, additionalServerOptions = "", additionalCli
interpreterOptions = ""):
lang = getDefaultMapping()
testdir = os.getcwd()
-
+
# Setup the server.
if lang in ["ruby", "php", "js"]:
serverdir = getMirrorDir(testdir, "cpp")
@@ -1743,7 +1743,7 @@ def clientEchoTest(additionalServerOptions = "", additionalClientOptions = "",
else:
sys.stdout.write("starting %s %s ... " % (clientLang, clientDesc))
sys.stdout.flush()
-
+
if clientLang == "js" and es5 and client.find("/es5/") == -1:
client = client.replace("test/Ice/", "test/Ice/es5/")
@@ -2452,7 +2452,7 @@ def runTests(start, expanded, num = 0, script = False):
print(" exit 1")
print("fi")
else:
- if es5 and dir.find("/es5/") == -1:
+ if dir.find(os.path.join("js","test")) != -1 and es5 and dir.find("/es5/") == -1:
dir = dir.replace("test/Ice/", "test/Ice/es5/").replace("test/Glacier2/", "test/Glacier2/es5/")
status = os.system(sys.executable + " " + quoteArgument(os.path.join(dir, "run.py")) + " " + args)
if status: