Updated Branches:
  refs/heads/master 2b35a9255 -> 806e1b538

BIGTOP-904. mahout tests should default to /tmp as a temp location


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

Branch: refs/heads/master
Commit: 7b2fcf4ce816215ccdcc675f954ed2b0542f022b
Parents: de80808
Author: Roman Shaposhnik <[email protected]>
Authored: Thu Apr 4 13:56:16 2013 -0700
Committer: Roman Shaposhnik <[email protected]>
Committed: Thu Apr 4 13:57:20 2013 -0700

----------------------------------------------------------------------
 .../itest/mahout/smoke/TestMahoutExamples.groovy   |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/7b2fcf4c/bigtop-tests/test-artifacts/mahout/src/main/groovy/org/apache/bigtop/itest/mahout/smoke/TestMahoutExamples.groovy
----------------------------------------------------------------------
diff --git 
a/bigtop-tests/test-artifacts/mahout/src/main/groovy/org/apache/bigtop/itest/mahout/smoke/TestMahoutExamples.groovy
 
b/bigtop-tests/test-artifacts/mahout/src/main/groovy/org/apache/bigtop/itest/mahout/smoke/TestMahoutExamples.groovy
index e20f131..4e2ae2c 100644
--- 
a/bigtop-tests/test-artifacts/mahout/src/main/groovy/org/apache/bigtop/itest/mahout/smoke/TestMahoutExamples.groovy
+++ 
b/bigtop-tests/test-artifacts/mahout/src/main/groovy/org/apache/bigtop/itest/mahout/smoke/TestMahoutExamples.groovy
@@ -34,13 +34,7 @@ public class TestMahoutExamples {
   public static final String TEMP_DIR = "/tmp/mahout.${(new 
Date().getTime())}";
   public static final String WORK_DIR = TEMP_DIR;
   private static Shell sh = new Shell("/bin/bash -s");
-  public static String download_dir = 
System.getProperty("mahout.examples.resources.download.path");
-  static {
-    if (download_dir == null) {
-      sh.exec("pwd");
-      download_dir = sh.out[0];
-    }
-  }
+  public static String download_dir = 
System.getProperty("mahout.examples.resources.download.path") ?: "/tmp" ;
 
   @BeforeClass
   public static void setUp() {

Reply via email to