diff options
author | Jose <jose@zeroc.com> | 2016-05-17 23:24:27 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-05-17 23:24:27 +0200 |
commit | a9942c6bb039e6d77e7963112287e76c1d2864e4 (patch) | |
tree | be33be65885f37792211201dc521a13d7dea25a6 /scripts/TestUtil.py | |
parent | Fixed redirection for php-config check (diff) | |
download | ice-a9942c6bb039e6d77e7963112287e76c1d2864e4.tar.bz2 ice-a9942c6bb039e6d77e7963112287e76c1d2864e4.tar.xz ice-a9942c6bb039e6d77e7963112287e76c1d2864e4.zip |
Fix Windows test suite
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index 45e0230f6b8..a268ddbeb7e 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -1883,7 +1883,8 @@ def getTestEnv(lang, testdir): # Add cpp/test/Common output directory to the env # if lang == "cpp": - addLdPath(getTestDirectory("testcommon", os.path.join(toplevel, "cpp", "test", "Common")), env) + baseDir = os.path.join(toplevel, "cpp", "test", "Common") + addLdPath(os.path.join(baseDir, getTestDirectory("testcommon", baseDir)), env) # Make sure bzip2 can be found by x86 C# builds on x64 platforms if lang == "csharp" and not x64: @@ -2550,9 +2551,9 @@ def getTestDirectory(name, baseDir = os.getcwd()): configuration = ("cpp11-" if cpp11 else "") + ("static" if static else "shared") if os.path.isdir(os.path.join(baseDir, buildDir, name)): - return os.path.join(baseDir, buildDir, name, platform, configuration) + return os.path.join(buildDir, name, platform, configuration) else: - return os.path.join(baseDir, buildDir, platform, configuration) + return os.path.join(buildDir, platform, configuration) def getTestExecutable(name, baseDir = os.getcwd()): return os.path.join(getTestDirectory(name, baseDir), name) |