Repository: bigtop
Updated Branches:
  refs/heads/master 2ba712d14 -> bb86afb3b


BIGTOP-1664. make test unpack resources optional


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

Branch: refs/heads/master
Commit: bb86afb3b653bd47563d965113027d2df0477d9d
Parents: 2ba712d
Author: jayunit100 <[email protected]>
Authored: Wed Feb 11 19:59:03 2015 -0500
Committer: Konstantin Boudnik <[email protected]>
Committed: Wed Feb 11 18:17:21 2015 -0800

----------------------------------------------------------------------
 .../bigtop/itest/hadoop/mapreduce/TestHadoopSmoke.groovy       | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/bb86afb3/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/mapreduce/TestHadoopSmoke.groovy
----------------------------------------------------------------------
diff --git 
a/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/mapreduce/TestHadoopSmoke.groovy
 
b/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/mapreduce/TestHadoopSmoke.groovy
index 0b2970b..40ad04d 100644
--- 
a/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/mapreduce/TestHadoopSmoke.groovy
+++ 
b/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/mapreduce/TestHadoopSmoke.groovy
@@ -56,7 +56,11 @@ class TestHadoopSmoke {
   @BeforeClass
   static void  setUp() throws IOException {
     String[] inputFiles = ["cachedir.jar", "input.txt"];
-    TestUtils.unpackTestResources(TestHadoopSmoke.class, 
"${testDir}/cachefile", inputFiles, null);
+    try {
+      TestUtils.unpackTestResources(TestHadoopSmoke.class, 
"${testDir}/cachefile", inputFiles, null);
+    } catch(Throwable t) {
+      logError("Couldn't unpack resources, you better have resources on your 
classpath.");
+    }
   }
 
   @AfterClass

Reply via email to