Print runtime.java in test failures (#55515) (#55624)

This commit adds `runtime.java` as a system property in our
nonInputProperties so that it will be available to be printed
upon test failure by ReproduceInfoPrinter.
This commit is contained in:
Ioannis Kakavas 2020-04-23 18:53:58 +03:00 committed by GitHub
parent 4f483ac370
commit 55485cfa17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -727,7 +727,8 @@ class BuildPlugin implements Plugin<Project> {
// we use 'temp' relative to CWD since this is per JVM and tests are forbidden from writing to CWD
nonInputProperties.systemProperty('java.io.tmpdir', test.workingDir.toPath().resolve('temp'))
nonInputProperties.systemProperty('compiler.java', "${-> BuildParams.compilerJavaVersion.majorVersion}")
nonInputProperties.systemProperty('compiler.java', BuildParams.compilerJavaVersion.majorVersion)
nonInputProperties.systemProperty('runtime.java', BuildParams.runtimeJavaVersion.majorVersion)
// TODO: remove setting logging level via system property
test.systemProperty 'tests.logger.level', 'WARN'