tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeag...@apache.org
Subject [20/28] git commit: TEZ-1555. TestTezClientUtils.validateSetTezJarLocalResourcesDefinedButEmpty failing on Windows (Prakash Ramachandran via bikas)
Date Thu, 02 Oct 2014 20:46:07 GMT
TEZ-1555. TestTezClientUtils.validateSetTezJarLocalResourcesDefinedButEmpty failing on Windows
(Prakash Ramachandran via bikas)


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

Branch: refs/heads/TEZ-8
Commit: a56f9ef4e81002f64d961a195bd68fd5c10e2bee
Parents: a156c6e
Author: Bikas Saha <bikas@apache.org>
Authored: Fri Sep 26 11:00:15 2014 -0700
Committer: Bikas Saha <bikas@apache.org>
Committed: Fri Sep 26 11:00:15 2014 -0700

----------------------------------------------------------------------
 CHANGES.txt                                                      | 2 ++
 .../src/test/java/org/apache/tez/client/TestTezClientUtils.java  | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/a56f9ef4/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 87711db..93cd3ae 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -32,6 +32,8 @@ ALL CHANGES:
   INITED state
   TEZ-1612. ShuffleVertexManager's EdgeManager should not hard code source num
   tasks
+  TEZ-1555. TestTezClientUtils.validateSetTezJarLocalResourcesDefinedButEmpty
+  failing on Windows
 
 Release 0.5.1: Unreleased
 

http://git-wip-us.apache.org/repos/asf/tez/blob/a56f9ef4/tez-api/src/test/java/org/apache/tez/client/TestTezClientUtils.java
----------------------------------------------------------------------
diff --git a/tez-api/src/test/java/org/apache/tez/client/TestTezClientUtils.java b/tez-api/src/test/java/org/apache/tez/client/TestTezClientUtils.java
index ddd5963..a802041 100644
--- a/tez-api/src/test/java/org/apache/tez/client/TestTezClientUtils.java
+++ b/tez-api/src/test/java/org/apache/tez/client/TestTezClientUtils.java
@@ -24,6 +24,7 @@ import static org.junit.Assert.assertTrue;
 
 import java.io.File;
 import java.io.FileNotFoundException;
+import java.net.URI;
 import java.net.URL;
 import java.net.URLClassLoader;
 import java.util.HashMap;
@@ -73,9 +74,8 @@ public class TestTezClientUtils {
     File emptyDir = new File(TEST_ROOT_DIR, "emptyDir");
     emptyDir.deleteOnExit();
     Assert.assertTrue(emptyDir.mkdirs());
-    Path emptyDirPath = new Path(emptyDir.getAbsolutePath());
     TezConfiguration conf = new TezConfiguration();
-    conf.set(TezConfiguration.TEZ_LIB_URIS, "file://" + emptyDirPath.toString());
+    conf.set(TezConfiguration.TEZ_LIB_URIS, emptyDir.toURI().toURL().toString());
     Credentials credentials = new Credentials();
     try {
       TezClientUtils.setupTezJarsLocalResources(conf, credentials);


Mime
View raw message