Specify optional tests with an environment variable.

This commit is contained in:
akwizgran
2018-09-06 10:34:04 +01:00
parent e12601dd08
commit b2febbc6e9
10 changed files with 20 additions and 34 deletions

View File

@@ -6,6 +6,14 @@ allprojects {
mavenLocal()
google()
}
afterEvaluate {
tasks.withType(Test) {
// Allow tests to be re-run if any optional tests are enabled
outputs.upToDateWhen { System.getenv("OPTIONAL_TESTS") == null }
// Use entropy-gathering device specified on command line, if any
systemProperty 'java.security.egd', System.getProperty('java.security.egd')
}
}
}
buildscript {