Make it possible to run more init-script tests on M1 Mac

Older TestKit on M1 Mac doesn't allow env vars to be passed, so we need to use
jvmArgs instead.
This commit is contained in:
daz
2024-04-08 09:46:48 -06:00
parent 2b3c9df6d2
commit 0ac212a9d2
6 changed files with 98 additions and 47 deletions

View File

@@ -125,8 +125,8 @@ class BuildResults {
}
def writeToResultsFile(boolean overwrite) {
def runnerTempDir = System.getenv("RUNNER_TEMP")
def githubActionStep = System.getenv("GITHUB_ACTION")
def runnerTempDir = System.getProperty("RUNNER_TEMP") ?: System.getenv("RUNNER_TEMP")
def githubActionStep = System.getProperty("GITHUB_ACTION") ?: System.getenv("GITHUB_ACTION")
if (!runnerTempDir || !githubActionStep) {
return
}