diff options
author | Jose <jose@zeroc.com> | 2014-12-04 16:23:28 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2014-12-04 16:23:28 +0100 |
commit | 39126e8f5f7a54be60fedc6ac73cc1105c669e6f (patch) | |
tree | fdd97e0eb6fdc8c9f8bf8732218a335770c3de1a /scripts/TestUtil.py | |
parent | Fixed issue from previous commit, removed all references to getIceVersion (diff) | |
download | ice-39126e8f5f7a54be60fedc6ac73cc1105c669e6f.tar.bz2 ice-39126e8f5f7a54be60fedc6ac73cc1105c669e6f.tar.xz ice-39126e8f5f7a54be60fedc6ac73cc1105c669e6f.zip |
Fixed (ICE-6057) - VS2012: IceGrid\customLoadBalancing fails
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index 3b01b288ed4..62bdce5fb15 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -805,10 +805,16 @@ def getIceStormAdmin(): return getIceExe("icestormadmin") def getIceGridNode(): - return getIceExe("icegridnode") + exe = "icegridnode" + if isWin32() and isDebug(): + exe += "d" + return getIceExe(exe) def getIceGridRegistry(): - return getIceExe("icegridregistry") + exe = "icegridregistry" + if isWin32() and isDebug(): + exe += "d" + return getIceExe(exe) def getGlacier2Router(): return getIceExe("glacier2router") @@ -1188,7 +1194,17 @@ def isDebug(): # how the IceBox service was built ("debug" vs. "release") and # decide which icebox executable to use. # - return open(os.path.join(os.getcwd(), "build.txt"), "r").read().strip() == "debug" + if os.path.isfile(os.path.join(os.getcwd(), "build.txt")): + return open(os.path.join(os.getcwd(), "build.txt"), "r").read().strip() == "debug" + # + # Try to guess, if icebox release executable exists in the C++ bin dir + # we assume is a release build or bin dist, tests that depends on debug + # or release (C++) need to create the build.txt file. + # + exe = "icebox" + if isWin32(): + exe += ".exe" + return not os.path.isfile(os.path.join(getCppBinDir("cpp"), "icebox")) import Expect |