HDFS-6237. TestDFSShell#testGet fails on Windows due to invalid file system path. Contributed by Chris Nauroth.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1587146 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris Nauroth 2014-04-14 04:38:46 +00:00
parent 9ac54b5480
commit 7aed74b3d0
2 changed files with 5 additions and 1 deletions

View File

@ -338,6 +338,9 @@ Release 2.5.0 - UNRELEASED
HDFS-5669. Storage#tryLock() should check for null before logging successfull message HDFS-5669. Storage#tryLock() should check for null before logging successfull message
(Vinayakumar B via umamahesh) (Vinayakumar B via umamahesh)
HDFS-6237. TestDFSShell#testGet fails on Windows due to invalid file system
path. (cnauroth)
Release 2.4.1 - UNRELEASED Release 2.4.1 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -1477,7 +1477,8 @@ public class TestDFSShell {
private final FsShell shell = new FsShell(conf); private final FsShell shell = new FsShell(conf);
public String run(int exitcode, String... options) throws IOException { public String run(int exitcode, String... options) throws IOException {
String dst = TEST_ROOT_DIR + "/" + fname+ ++count; String dst = new File(TEST_ROOT_DIR, fname + ++count)
.getAbsolutePath();
String[] args = new String[options.length + 3]; String[] args = new String[options.length + 3];
args[0] = "-get"; args[0] = "-get";
args[args.length - 2] = remotef.toString(); args[args.length - 2] = remotef.toString();