diff options
author | Jose <jose@zeroc.com> | 2013-09-13 18:03:45 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2013-09-13 18:03:45 +0200 |
commit | 8f6e1e18e6717164f5ff67292c364057eb0eaa65 (patch) | |
tree | 441930f380b3ae22196ea8a003fb9534fac47564 /scripts/TestUtil.py | |
parent | Added --start-at-test/--start-at-demo options to testicedist.py (diff) | |
download | ice-8f6e1e18e6717164f5ff67292c364057eb0eaa65.tar.bz2 ice-8f6e1e18e6717164f5ff67292c364057eb0eaa65.tar.xz ice-8f6e1e18e6717164f5ff67292c364057eb0eaa65.zip |
Minor fixes to TestUtil.py
* Use java from JAVA_HOME when JAVA_HOME is set
* Remove unused function
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index f63e1985223..044124e1732 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -22,7 +22,13 @@ socksProxy = False # Use SOCKS proxy running on localhost iceHome = None # Binary distribution to use (None to use binaries from source distribution) x64 = False # Binary distribution is 64-bit cpp11 = False # Binary distribution is c++ 11 -javaCmd = "java" # Default java loader + + +# Default java loader + +javaHome = os.environ.get("JAVA_HOME", "") +javaCmd = os.path.join('"%s"' % javaHome, "bin", "java") if javaHome else "java" + valgrind = False # Set to True to use valgrind for C++ executables. appverifier = False # Set to True to use appverifier for C++ executables, This is windows only feature tracefile = None @@ -592,18 +598,6 @@ def getIceSoVersion(): else: return '%d' % (majorVersion * 10 + minorVersion) -def getIceSSLVersion(): - process = subprocess.Popen("java -version", stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True) - if not process or not process.stdout: - print("unable to get IceSSL version!") - sys.exit(1) - version = process.stdout.readline() - if not version: - print("unable to get IceSSL version!") - sys.exit(1) - version = version.decode("utf-8") - return version.strip() - def getJdkVersion(): process = subprocess.Popen("java -version", stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True) if not process or not process.stdout: |