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 /scripts/TestUtil.py | |
parent | Fixed metrics test failures (diff) | |
download | ice-f6cb6feef4187d8c222b1f994772641c6f68fdd4.tar.bz2 ice-f6cb6feef4187d8c222b1f994772641c6f68fdd4.tar.xz ice-f6cb6feef4187d8c222b1f994772641c6f68fdd4.zip |
Test suite fixes
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 19 |
1 files changed, 15 insertions, 4 deletions
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)) |