diff options
author | Benoit Foucher <benoit@zeroc.com> | 2012-10-23 16:18:37 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2012-10-23 16:18:37 +0200 |
commit | f6cb6feef4187d8c222b1f994772641c6f68fdd4 (patch) | |
tree | 0ecb0ee84dff40b57b2478b7653f04ce643925c9 | |
parent | Fixed metrics test failures (diff) | |
download | ice-f6cb6feef4187d8c222b1f994772641c6f68fdd4.tar.bz2 ice-f6cb6feef4187d8c222b1f994772641c6f68fdd4.tar.xz ice-f6cb6feef4187d8c222b1f994772641c6f68fdd4.zip |
Test suite fixes
-rwxr-xr-x | java/test/IceBox/admin/run.py | 2 | ||||
-rwxr-xr-x | scripts/Expect.py | 5 | ||||
-rwxr-xr-x | scripts/TestUtil.py | 19 |
3 files changed, 20 insertions, 6 deletions
diff --git a/java/test/IceBox/admin/run.py b/java/test/IceBox/admin/run.py index c6b001429d7..695d52bf4bb 100755 --- a/java/test/IceBox/admin/run.py +++ b/java/test/IceBox/admin/run.py @@ -20,5 +20,5 @@ if len(path) == 0: sys.path.append(os.path.join(path[0])) from scripts import * -TestUtil.clientServerTest(additionalServerOptions="--Ice.Config=%s" % os.path.join(os.getcwd(), "config.icebox"), +TestUtil.clientServerTest(additionalServerOptions='--Ice.Config="%s"' % os.path.join(os.getcwd(), "config.icebox"), server=TestUtil.getIceBox()) diff --git a/scripts/Expect.py b/scripts/Expect.py index 0a4f6632d2d..2515d57edc1 100755 --- a/scripts/Expect.py +++ b/scripts/Expect.py @@ -335,8 +335,11 @@ class Expect (object): # # universal_newlines = True is necessary for Python 3 on Windows # + # We set shell=True to make sure executables are correctly searched + # in directories specified by the PATH environment variable. + # CREATE_NEW_PROCESS_GROUP = 512 - self.p = subprocess.Popen(command, env = env, cwd = cwd, shell=False, bufsize=0, stdin=subprocess.PIPE, + self.p = subprocess.Popen(command, env = env, cwd = cwd, shell=True, bufsize=0, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, creationflags = CREATE_NEW_PROCESS_GROUP, universal_newlines=True) else: diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index 67d3be026cd..e34c641b4d3 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -638,13 +638,14 @@ def getJdkVersion(): if not javaPipeIn or not javaPipeOut: print("unable to get Java version!") sys.exit(1) - version = javaPipeOut.readline() - if not version: + global jdkVersion + jdkVersion = javaPipeOut.readline() + if not jdkVersion: print("unable to get Java version!") sys.exit(1) javaPipeIn.close() javaPipeOut.close() - return version + return jdkVersion def getIceBox(): # @@ -1138,7 +1139,11 @@ def runCommand(command): # if isWin32(): CREATE_NEW_PROCESS_GROUP = 512 - p = subprocess.Popen(command, shell=False, bufsize=0, stdin=subprocess.PIPE, stdout=subprocess.PIPE, + # + # We set shell=True to make sure executables are correctly searched + # in directories specified by the PATH environment variable. + # + p = subprocess.Popen(command, shell=True, bufsize=0, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, creationflags = 512) else: p = subprocess.Popen(command, shell=True, bufsize=1024, stdin=subprocess.PIPE, stdout=subprocess.PIPE, \ @@ -1752,6 +1757,12 @@ def runTests(start, expanded, num = 0, script = False): print("%s*** test not supported with IceSSL%s" % (prefix, suffix)) continue + # If this is java and we're running ipv6 under windows then skip. + if isWin32() and i.find(os.path.join("java","test")) != -1 and args.find("ipv6") != -1 and \ + getJdkVersion().find("java version \"1.6") != -1: + print("%s*** test not supported under windows%s" % (prefix, suffix)) + continue + # Skip tests not supported by valgrind if args.find("valgrind") != -1 and ("novalgrind" in config or args.find("ssl") != -1): print("%s*** test not supported with valgrind%s" % (prefix, suffix)) |