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

This commit is contained in:
arp 2014-12-12 14:28:46 -08:00
parent d9f31c6472
commit d15fb57f46
2 changed files with 6 additions and 7 deletions

View File

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

View File

@ -42,13 +42,12 @@
* This class tests the logic for displaying the binary formats supported
* by the Text command.
*/
public class TestTextCommand {
private static final String TEST_ROOT_DIR =
System.getProperty("test.build.data", "build/test/data/") + "/testText";
public class TestHdfsTextCommand {
private static final String TEST_ROOT_DIR = "/build/test/data/testText";
private static final Path AVRO_FILENAME = new Path(TEST_ROOT_DIR, "weather.avro");
private static MiniDFSCluster cluster;
private static FileSystem fs;
@Before
public void setUp() throws IOException{
Configuration conf = new HdfsConfiguration();
@ -66,7 +65,7 @@ public void tearDown() throws IOException{
cluster.shutdown();
}
}
/**
* Tests whether binary Avro data files are displayed correctly.
*/
@ -214,5 +213,3 @@ private byte[] generateWeatherAvroBinaryData() {
return contents;
}
}