diff options
author | Joe George <joe@zeroc.com> | 2020-12-15 11:04:07 -0500 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2020-12-15 11:04:50 -0500 |
commit | 3ca266da1dab60f65bad620908a56d6ed3d69f15 (patch) | |
tree | bbae21e771e825fc8cfe0ae03dbf05a7c0cf324a /scripts | |
parent | Fix Carthage build to include all required frameworks (diff) | |
download | ice-3ca266da1dab60f65bad620908a56d6ed3d69f15.tar.bz2 ice-3ca266da1dab60f65bad620908a56d6ed3d69f15.tar.xz ice-3ca266da1dab60f65bad620908a56d6ed3d69f15.zip |
Add ability to set python interpreter used to test
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Util.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index 8ffea39e0a9..708ace84417 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -631,6 +631,7 @@ class Mapping(object): self.device = "" self.avd = "" self.phpVersion = "7.1" + self.python = sys.executable parseOptions(self, options, { "config" : "buildConfig", "platform" : "buildPlatform" }) @@ -3423,6 +3424,7 @@ class CSharpMapping(Mapping): @classmethod def usage(self): print("") + print("C# mapping options:") print("--dotnetcore Run C# tests using .NET Core") print("--framework=<TargetFramework> Choose the framework used to run .NET tests") @@ -3671,8 +3673,21 @@ class PythonMapping(CppBasedMapping): mappingName = "python" mappingDesc = "Python" + @classmethod + def getSupportedArgs(self): + return ("", ["python="]) + + @classmethod + def usage(self): + print("") + print("Python mapping options:") + print("--python=<interpreter> Choose the interperter used to run python tests") + + def __init__(self, options=[]): + Mapping.Config.__init__(self, options) + def getCommandLine(self, current, process, exe, args): - return "\"{0}\" {1} {2} {3}".format(sys.executable, + return "\"{0}\" {1} {2} {3}".format(current.config.python, os.path.join(self.path, "test", "TestHelper.py"), exe, args) |