diff options
author | Benoit Foucher <benoit@zeroc.com> | 2016-11-30 15:22:26 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2016-11-30 15:22:26 +0100 |
commit | 7b88a5e3be7e88eef2cbf053fcc6b673de858321 (patch) | |
tree | d2e9068e0acb88790df60a44e0b3bfe784bcd124 /scripts/Util.py | |
parent | Fixes to run IceGrid test with Windows bindist in debug mode (diff) | |
download | ice-7b88a5e3be7e88eef2cbf053fcc6b673de858321.tar.bz2 ice-7b88a5e3be7e88eef2cbf053fcc6b673de858321.tar.xz ice-7b88a5e3be7e88eef2cbf053fcc6b673de858321.zip |
Removed Java controller, fixes to investiage IceGrid/replication test failure
Diffstat (limited to 'scripts/Util.py')
-rw-r--r-- | scripts/Util.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index 864564903e6..15457faad8a 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -226,18 +226,24 @@ class Windows(Platform): elif isinstance(mapping, CSharpMapping): return os.path.join("csharp", "msbuild", "packages","zeroc.ice.net.{0}".format(getIceJSONVersion())) elif isinstance(mapping, CppMapping): - return os.path.join("cpp", "msbuild", "packages","zeroc.ice.{0}.{1}".format(self.getCompiler(), + return os.path.join("cpp", "msbuild", "packages","zeroc.ice.{0}.{1}".format(self.getCompiler(), getIceJSONVersion())) assert False def getBinSubDir(self, mapping, process, current): - c = current.config + + # + # Platform/Config taget bin directories. + # + platform = current.config.buildPlatform + config = "Debug" if c.buildConfig.find("Debug") >= 0 else "Release" + if current.driver.useBinDist(): if isinstance(process, SliceTranslator): return os.path.join(self.getNugetPackage(mapping), "build", "native", "bin", "Win32", "Release") elif isinstance(mapping, CSharpMapping) and isinstance(process, IceBox): return os.path.join(self.getNugetPackage(mapping), "tools") - + # # Fallback to binaries from default C++ package # @@ -249,13 +255,11 @@ class Windows(Platform): if (isinstance(process, Glacier2Router) or isinstance(process, IcePatch2Calc) or isinstance(process, IcePatch2Client) or isinstance(process, IcePatch2Server)): config = "Release" - else: - config = "Debug" if c.buildConfig.find("Debug") >= 0 else "Release" - return os.path.join(self.getNugetPackage(mapping), "build", "native", "bin", c.buildPlatform, config) + return os.path.join(self.getNugetPackage(mapping), "build", "native", "bin", platform, config) else: if isinstance(mapping, CppMapping) or isinstance(mapping, PhpMapping): - return os.path.join("bin", c.buildPlatform, "Debug" if c.buildConfig.find("Debug") >= 0 else "Release") + return os.path.join("bin", platform, config) return "bin" def getLibSubDir(self, mapping, process, current): @@ -1432,7 +1436,7 @@ class Result: self._start = self._stdout.tell() def failed(self, testcase, exception): - self.writeln("test in {0} failed:\n{1}".format(self.testsuite, exception)) + self.writeln("\ntest in {0} failed:\n{1}".format(self.testsuite, exception)) self._testcases[testcase] = (self._start, self._stdout.tell()) self._failed[testcase] = exception |