Переглянути джерело

Addendum : HADOOP-12984. Add GenericTestUtils.getTestDir method and use it for emporary directory in tests (Contributed by Steve Loughran and Vinayakumar B)

Vinayakumar B 9 роки тому
батько
коміт
aea518ef30

+ 2 - 2
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileUtil.java

@@ -566,8 +566,8 @@ public class TestFileUtil {
     final boolean result;
 
     try {
-      Path srcPath = new Path(TEST_ROOT_DIR, src);
-      Path dstPath = new Path(TEST_ROOT_DIR, dst);
+      Path srcPath = new Path(TEST_DIR.getAbsolutePath(), src);
+      Path dstPath = new Path(TEST_DIR.getAbsolutePath(), dst);
       boolean deleteSource = false;
       String addString = null;
       result = FileUtil.copyMerge(fs, srcPath, fs, dstPath, deleteSource, conf,