bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject bigtop git commit: BIGTOP-2242. Running ./gradlew should only require JAVA_HOME for test task
Date Fri, 15 Jan 2016 01:52:41 GMT
Repository: bigtop
Updated Branches:
  refs/heads/master 7a03abb7c -> e0a288d55


BIGTOP-2242. Running ./gradlew should only require JAVA_HOME for test task


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/e0a288d5
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/e0a288d5
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/e0a288d5

Branch: refs/heads/master
Commit: e0a288d551d78f4cef38e877f14c3ee5ea4463cd
Parents: 7a03abb
Author: Konstantin Boudnik <cos@apache.org>
Authored: Thu Jan 14 17:13:39 2016 -0800
Committer: Konstantin Boudnik <cos@apache.org>
Committed: Thu Jan 14 17:23:05 2016 -0800

----------------------------------------------------------------------
 bigtop-tests/smoke-tests/build.gradle | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/e0a288d5/bigtop-tests/smoke-tests/build.gradle
----------------------------------------------------------------------
diff --git a/bigtop-tests/smoke-tests/build.gradle b/bigtop-tests/smoke-tests/build.gradle
index 74b7b72..5145b79 100644
--- a/bigtop-tests/smoke-tests/build.gradle
+++ b/bigtop-tests/smoke-tests/build.gradle
@@ -27,12 +27,6 @@ subprojects {
     }
   }
 
-  /**
-  * Two important environment variables.
-  *  java_home should be declared in all cases.
-  */
-  checkEnv(["JAVA_HOME"])
-
   ext.groovyVersion = '1.8.0'
   ext.hadoopVersion = '2.6.0'
   // itest needs be greater than or equal to = 1.0.0
@@ -72,7 +66,9 @@ subprojects {
     return !keep_this_test;
   }
 
-  test {
+  test.doFirst {
+    //  java_home should be declared in all cases.
+    checkEnv(["JAVA_HOME"])
     // TestHadoopExamples and other tests rely on BIGTOP_HOME environment
     // variable to find some resources. Let's set it up, using ext.BIGTOP_HOME
     environment ("BIGTOP_HOME", BIGTOP_HOME)


Mime
View raw message