diff options
author | Jose <jose@zeroc.com> | 2019-09-26 21:28:04 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-09-26 21:28:04 +0200 |
commit | ce51f9b93936858d187b7bcc2cdcb230eccdc81e (patch) | |
tree | de232363d0c4004d71383da53723cfd296963111 /scripts/Util.py | |
parent | Fix default .NET Core version to match Directory.Build.props setting (diff) | |
download | ice-ce51f9b93936858d187b7bcc2cdcb230eccdc81e.tar.bz2 ice-ce51f9b93936858d187b7bcc2cdcb230eccdc81e.tar.xz ice-ce51f9b93936858d187b7bcc2cdcb230eccdc81e.zip |
Test with .NET Core native binaries when available
Diffstat (limited to 'scripts/Util.py')
-rw-r--r-- | scripts/Util.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index fb0a4a769ef..3f400541ee0 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -3479,10 +3479,18 @@ class CSharpMapping(Mapping): else: path = os.path.join(current.testcase.getPath(current), current.getBuildDir(exe)) - if current.config.dotnetcore: - return "dotnet " + os.path.join(path, exe) + ".dll " + args - else: - return os.path.join(path, exe) + ".exe " + args + useDotnetExe = current.config.dotnetcore and (current.config.framework in ["netcoreapp2.1", "netcoreapp2.2"] or + process.isFromBinDir()) + command = "" + if useDotnetExe: + command += "dotnet " + command += os.path.join(path, exe) + if useDotnetExe: + command += ".dll " + elif isinstance(platform, Windows): + command += ".exe" + command += " {}".format(args) + return command def getSDKPackage(self): return "system-images;android-27;google_apis;x86" |