HADOOP-10162. Fix symlink-related test failures in TestFileContextResolveAfs and TestStat in branch-2 (Mit Desai via Colin Patrick McCabe)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1550487 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cb6f28e122
commit
f7e842683d
|
@ -174,6 +174,10 @@ Release 2.4.0 - UNRELEASED
|
||||||
HADOOP-10058. TestMetricsSystemImpl#testInitFirstVerifyStopInvokedImmediately
|
HADOOP-10058. TestMetricsSystemImpl#testInitFirstVerifyStopInvokedImmediately
|
||||||
fails on trunk (Chen He via jeagles)
|
fails on trunk (Chen He via jeagles)
|
||||||
|
|
||||||
|
HADOOP-10162. Fix symlink-related test failures in
|
||||||
|
TestFileContextResolveAfs and TestStat in branch-2 (Mit Desai via Colin
|
||||||
|
Patrick McCabe)
|
||||||
|
|
||||||
Release 2.3.0 - UNRELEASED
|
Release 2.3.0 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -31,7 +31,9 @@ import org.junit.Test;
|
||||||
* Tests resolution of AbstractFileSystems for a given path with symlinks.
|
* Tests resolution of AbstractFileSystems for a given path with symlinks.
|
||||||
*/
|
*/
|
||||||
public class TestFileContextResolveAfs {
|
public class TestFileContextResolveAfs {
|
||||||
|
static{
|
||||||
|
FileSystem.enableSymlinks();
|
||||||
|
}
|
||||||
private static String TEST_ROOT_DIR_LOCAL
|
private static String TEST_ROOT_DIR_LOCAL
|
||||||
= System.getProperty("test.build.data","/tmp");
|
= System.getProperty("test.build.data","/tmp");
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,9 @@ import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class TestStat extends FileSystemTestHelper {
|
public class TestStat extends FileSystemTestHelper {
|
||||||
|
static{
|
||||||
|
FileSystem.enableSymlinks();
|
||||||
|
}
|
||||||
private static Stat stat;
|
private static Stat stat;
|
||||||
|
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
|
|
Loading…
Reference in New Issue