HDFS-13268. TestWebHdfsFileContextMainOperations fails on Windows. Contributed by Xiao Liang.
(cherry picked from commit fe224ff972a299a74c16a6a20ddd85ea16486b1e)
This commit is contained in:
parent
4aa34324b2
commit
d6df90f7b5
@ -43,7 +43,7 @@ public final class FileContextTestHelper {
|
|||||||
* Create a context with test root relative to the test directory
|
* Create a context with test root relative to the test directory
|
||||||
*/
|
*/
|
||||||
public FileContextTestHelper() {
|
public FileContextTestHelper() {
|
||||||
this(GenericTestUtils.getRandomizedTestDir().getAbsolutePath());
|
this(GenericTestUtils.getRandomizedTestDir().getPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -83,7 +83,7 @@ public String getAbsoluteTestRootDir(FileContext fc) {
|
|||||||
absTestRootDir = testRootDir;
|
absTestRootDir = testRootDir;
|
||||||
} else {
|
} else {
|
||||||
absTestRootDir = fc.getWorkingDirectory().toString() + "/"
|
absTestRootDir = fc.getWorkingDirectory().toString() + "/"
|
||||||
+ testRootDir;
|
+ new Path(testRootDir).toUri();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return absTestRootDir;
|
return absTestRootDir;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user