HDFS-7514. TestTextCommand fails on Windows. (Arpit Agarwal)

This commit is contained in:
arp 2014-12-12 14:27:50 -08:00
parent 46612c7a51
commit 7784b10808
2 changed files with 3 additions and 2 deletions

View File

@ -582,6 +582,8 @@ Release 2.7.0 - UNRELEASED
HDFS-7517. Remove redundant non-null checks in FSNamesystem# HDFS-7517. Remove redundant non-null checks in FSNamesystem#
getBlockLocations. (wheat9) getBlockLocations. (wheat9)
HDFS-7514. TestTextCommand fails on Windows. (Arpit Agarwal)
Release 2.6.1 - UNRELEASED Release 2.6.1 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -43,8 +43,7 @@ import org.junit.Test;
* by the Text command. * by the Text command.
*/ */
public class TestHdfsTextCommand { public class TestHdfsTextCommand {
private static final String TEST_ROOT_DIR = private static final String TEST_ROOT_DIR = "/test/data/testText";
System.getProperty("test.build.data", "build/test/data/") + "/testText";
private static final Path AVRO_FILENAME = new Path(TEST_ROOT_DIR, "weather.avro"); private static final Path AVRO_FILENAME = new Path(TEST_ROOT_DIR, "weather.avro");
private static MiniDFSCluster cluster; private static MiniDFSCluster cluster;
private static FileSystem fs; private static FileSystem fs;