HADOOP-7336. TestFileContextResolveAfs will fail with default test.build.data property.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1129905 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b0c968e2b9
commit
fe45b6ed79
|
@ -261,6 +261,9 @@ Trunk (unreleased changes)
|
||||||
HADOOP-7208. Fix implementation of equals() and hashCode() in
|
HADOOP-7208. Fix implementation of equals() and hashCode() in
|
||||||
StandardSocketFactory. (Uma Maheswara Rao G via todd)
|
StandardSocketFactory. (Uma Maheswara Rao G via todd)
|
||||||
|
|
||||||
|
HADOOP-7336. TestFileContextResolveAfs will fail with default
|
||||||
|
test.build.data property. (jitendra)
|
||||||
|
|
||||||
Release 0.22.0 - Unreleased
|
Release 0.22.0 - Unreleased
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -33,7 +33,7 @@ import org.junit.Test;
|
||||||
public class TestFileContextResolveAfs {
|
public class TestFileContextResolveAfs {
|
||||||
|
|
||||||
private static String TEST_ROOT_DIR_LOCAL
|
private static String TEST_ROOT_DIR_LOCAL
|
||||||
= System.getProperty("test.build.data","build/test/data/work-dir/localfs");
|
= System.getProperty("test.build.data","/tmp");
|
||||||
|
|
||||||
private FileContext fc;
|
private FileContext fc;
|
||||||
private FileSystem localFs;
|
private FileSystem localFs;
|
||||||
|
@ -48,8 +48,8 @@ public class TestFileContextResolveAfs {
|
||||||
Configuration conf = new Configuration();
|
Configuration conf = new Configuration();
|
||||||
localFs = FileSystem.get(conf);
|
localFs = FileSystem.get(conf);
|
||||||
|
|
||||||
Path localPath = new Path(TEST_ROOT_DIR_LOCAL + "/file1");
|
Path localPath = new Path(TEST_ROOT_DIR_LOCAL + "/TestFileContextResolveAfs1");
|
||||||
Path linkPath = new Path("file:///" + TEST_ROOT_DIR_LOCAL + "/file2");
|
Path linkPath = new Path("file://" + TEST_ROOT_DIR_LOCAL + "/TestFileContextResolveAfs2");
|
||||||
localFs.mkdirs(new Path(TEST_ROOT_DIR_LOCAL));
|
localFs.mkdirs(new Path(TEST_ROOT_DIR_LOCAL));
|
||||||
localFs.create(localPath);
|
localFs.create(localPath);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue