From bddfe796f2f992fc1dcc8a1dd44d64ff2b3c9cf4 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Fri, 25 May 2018 11:12:47 +0100 Subject: [PATCH] HADOOP-15494. TestRawLocalFileSystemContract fails on Windows. Contributed by Anbang Hu. --- .../org/apache/hadoop/fs/TestRawLocalFileSystemContract.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestRawLocalFileSystemContract.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestRawLocalFileSystemContract.java index ebf9ea75e7..908e330b15 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestRawLocalFileSystemContract.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestRawLocalFileSystemContract.java @@ -42,7 +42,7 @@ public class TestRawLocalFileSystemContract extends FileSystemContractBaseTest { private static final Logger LOG = LoggerFactory.getLogger(TestRawLocalFileSystemContract.class); private final static Path TEST_BASE_DIR = - new Path(GenericTestUtils.getTempPath("")); + new Path(GenericTestUtils.getRandomizedTestDir().getAbsolutePath()); @Before public void setUp() throws Exception {