Repository: hadoop
Updated Branches:
  refs/heads/branch-2 4aa34324b -> d6df90f7b
  refs/heads/branch-2.9 73be4292d -> ffa09b44b
  refs/heads/branch-3.0 62a819d5e -> 981fda128
  refs/heads/branch-3.1 c804b2846 -> 9b96e7522
  refs/heads/trunk 3ff6977d3 -> fe224ff97


HDFS-13268. TestWebHdfsFileContextMainOperations fails on Windows. Contributed 
by Xiao Liang.


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

Branch: refs/heads/trunk
Commit: fe224ff972a299a74c16a6a20ddd85ea16486b1e
Parents: 3ff6977
Author: Inigo Goiri <[email protected]>
Authored: Tue Mar 20 11:19:46 2018 -0700
Committer: Inigo Goiri <[email protected]>
Committed: Tue Mar 20 11:19:46 2018 -0700

----------------------------------------------------------------------
 .../test/java/org/apache/hadoop/fs/FileContextTestHelper.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/fe224ff9/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextTestHelper.java
----------------------------------------------------------------------
diff --git 
a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextTestHelper.java
 
b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextTestHelper.java
index e3a4a12..1f37f74 100644
--- 
a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextTestHelper.java
+++ 
b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextTestHelper.java
@@ -43,7 +43,7 @@ public final class FileContextTestHelper {
    * Create a context with test root relative to the test directory
    */
   public FileContextTestHelper() {
-    this(GenericTestUtils.getRandomizedTestDir().getAbsolutePath());
+    this(GenericTestUtils.getRandomizedTestDir().getPath());
   }
 
   /**
@@ -83,7 +83,7 @@ public final class FileContextTestHelper {
         absTestRootDir = testRootDir;
       } else {
         absTestRootDir = fc.getWorkingDirectory().toString() + "/"
-            + testRootDir;
+            + new Path(testRootDir).toUri();
       }
     }
     return absTestRootDir;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to