diff options
author | Jose <jose@zeroc.com> | 2018-08-06 11:56:42 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-08-06 11:56:42 +0200 |
commit | 7972f07a3aa244dcde673b7cb5541e70da9193bb (patch) | |
tree | 117faced1bb36ac256c7d362e11ac1c49e8e8c88 /scripts/Util.py | |
parent | Update JavaScript tests to use TestHelper class (diff) | |
download | ice-7972f07a3aa244dcde673b7cb5541e70da9193bb.tar.bz2 ice-7972f07a3aa244dcde673b7cb5541e70da9193bb.tar.xz ice-7972f07a3aa244dcde673b7cb5541e70da9193bb.zip |
Python test suite updates
Diffstat (limited to 'scripts/Util.py')
-rw-r--r-- | scripts/Util.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index 745b7c67366..a9f484ea581 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -3474,15 +3474,20 @@ class PythonMapping(CppBasedMapping): mappingDesc = "Python" def getCommandLine(self, current, process, exe, args): - return "\"{0}\" {1} {2}".format(sys.executable, exe, args) + return "\"{0}\" {1} {2} {3}".format(sys.executable, + os.path.join(self.path, "test", "TestHelper.py"), + exe, + args) def getEnv(self, process, current): env = CppBasedMapping.getEnv(self, process, current) + dirs = [] if component.getInstallDir(self, current) != platform.getInstallDir(): # If not installed in the default platform installation directory, add # the Ice python directory to PYTHONPATH - dirs = self.getPythonDirs(component.getInstallDir(self, current), current.config) - env["PYTHONPATH"] = os.pathsep.join(dirs) + dirs += self.getPythonDirs(component.getInstallDir(self, current), current.config) + dirs += [current.testcase.getPath()] + env["PYTHONPATH"] = os.pathsep.join(dirs) return env def getPythonDirs(self, iceDir, config): |