Repository: hadoop
Updated Branches:
  refs/heads/branch-2 c2b271fe0 -> aea518ef3


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


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

Branch: refs/heads/branch-2
Commit: aea518ef30afb7b2cab84c7598766588f1d9827d
Parents: c2b271f
Author: Vinayakumar B <[email protected]>
Authored: Thu Apr 7 14:33:48 2016 +0800
Committer: Vinayakumar B <[email protected]>
Committed: Thu Apr 7 14:33:48 2016 +0800

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


http://git-wip-us.apache.org/repos/asf/hadoop/blob/aea518ef/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileUtil.java
----------------------------------------------------------------------
diff --git 
a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileUtil.java
 
b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileUtil.java
index c478681..9475ee4 100644
--- 
a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileUtil.java
+++ 
b/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,

Reply via email to