bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject git commit: BIGTOP-1223. TestSlive does not fully remove root directory after an iteration
Date Wed, 26 Feb 2014 06:53:41 GMT
Repository: bigtop
Updated Branches:
  refs/heads/master 1f92b84a8 -> fd63c4f9a


BIGTOP-1223. TestSlive does not fully remove root directory after an iteration


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

Branch: refs/heads/master
Commit: fd63c4f9a6c70bf4ba0ad8a6bbe40c0e18a19ae1
Parents: 1f92b84
Author: Virginia Wang <virginia.wang@wandisco.com>
Authored: Tue Feb 25 22:53:17 2014 -0800
Committer: Konstantin Boudnik <cos@apache.org>
Committed: Tue Feb 25 22:53:17 2014 -0800

----------------------------------------------------------------------
 .../org/apache/bigtop/itest/iolongevity/TestSLive.groovy      | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/fd63c4f9/bigtop-tests/test-artifacts/longevity/src/main/groovy/org/apache/bigtop/itest/iolongevity/TestSLive.groovy
----------------------------------------------------------------------
diff --git a/bigtop-tests/test-artifacts/longevity/src/main/groovy/org/apache/bigtop/itest/iolongevity/TestSLive.groovy
b/bigtop-tests/test-artifacts/longevity/src/main/groovy/org/apache/bigtop/itest/iolongevity/TestSLive.groovy
index 76a96e6..caa0069 100644
--- a/bigtop-tests/test-artifacts/longevity/src/main/groovy/org/apache/bigtop/itest/iolongevity/TestSLive.groovy
+++ b/bigtop-tests/test-artifacts/longevity/src/main/groovy/org/apache/bigtop/itest/iolongevity/TestSLive.groovy
@@ -20,7 +20,6 @@ package org.apache.bigtop.itest.iolongevity
 
 import org.apache.bigtop.itest.JarContent
 import org.apache.bigtop.itest.shell.Shell
-import org.junit.Before
 import org.junit.BeforeClass
 import org.junit.Test
 import static org.apache.bigtop.itest.LogErrorsUtils.logError
@@ -85,9 +84,9 @@ public class TestSLive {
     ]
   }
 
-  @Before
-  public void tearDown() {
+  public void setUp() {
     sh.exec("hadoop fs -rm -r " + SLIVE_ROOT_FILE)
+    sh.exec("hadoop fs -mkdir " + SLIVE_ROOT_FILE)
     Thread.sleep(SLEEP_TIMEOUT)
   }
 
@@ -100,7 +99,7 @@ public class TestSLive {
   public void testSlive() {
     String suffix = ""
     for (int counter = 0; counter < numOfIterations; counter++) {
-      sh.exec("hadoop fs -mkdir " + SLIVE_ROOT_FILE)
+      setUp()
       sliveCmds.each { cmd ->
         sh.exec(cmd + suffix)
         logError(sh)


Mime
View raw message