aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/JarContentTest.groovy2
-rw-r--r--build.gradle4
2 files changed, 5 insertions, 1 deletions
diff --git a/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/JarContentTest.groovy b/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/JarContentTest.groovy
index b583d8af..9543b462 100644
--- a/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/JarContentTest.groovy
+++ b/bigtop-test-framework/src/test/groovy/org/apache/bigtop/itest/JarContentTest.groovy
@@ -45,7 +45,7 @@ class JarContentTest {
@Test
void testUnpackJarContainer() {
- def destination = 'target/local.unpack.dir';
+ def destination = System.properties['buildDir'] ?: 'target/local.unpack.dir';
JarContent.unpackJarContainer('java.lang.String', destination, 'visitor');
// expect to find a number of sun/reflect/generics/visitor
// under destination folder
diff --git a/build.gradle b/build.gradle
index e7cd6633..5064cb5c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -167,6 +167,10 @@ project(':itest-common') {
artifacts.archives packageITest
+ test.doFirst {
+ if (System.getenv('JAVA_HOME') == null)
+ throw new GradleException("JAVA_HOME is required to test ${project.name}")
+ }
test {
exclude '**/Dummy*'
}