Repository: hadoop Updated Branches: refs/heads/branch-2 2e059ff4e -> b3f4c2766 refs/heads/branch-2.9 2f05744ce -> 184c18c77 refs/heads/branch-3.0 fa9d4a749 -> 189b6bac8 refs/heads/branch-3.1 f2bcb8163 -> 6f31faf92 refs/heads/trunk 04b74eddc -> aeaf9fec6
HADOOP-15532. TestBasicDiskValidator fails with NoSuchFileException. Contributed by Giovanni Matteo Fumarola. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/aeaf9fec Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/aeaf9fec Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/aeaf9fec Branch: refs/heads/trunk Commit: aeaf9fec62f10699d1c809d66444520fe4533c2c Parents: 04b74ed Author: Inigo Goiri <inigo...@apache.org> Authored: Tue Jun 12 14:16:14 2018 -0700 Committer: Inigo Goiri <inigo...@apache.org> Committed: Tue Jun 12 14:16:14 2018 -0700 ---------------------------------------------------------------------- .../src/test/java/org/apache/hadoop/util/TestDiskChecker.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/aeaf9fec/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/TestDiskChecker.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/TestDiskChecker.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/TestDiskChecker.java index 6b6c6c8..e92c9ed 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/TestDiskChecker.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/TestDiskChecker.java @@ -137,7 +137,8 @@ public class TestDiskChecker { * @throws java.io.IOException if any */ protected File createTempFile() throws java.io.IOException { - File testDir = new File(System.getProperty("test.build.data")); + File testDir = + new File(System.getProperty("test.build.data", "target/test-dir")); return Files.createTempFile(testDir.toPath(), "test", "tmp").toFile(); } @@ -147,7 +148,8 @@ public class TestDiskChecker { * @throws java.io.IOException if any */ protected File createTempDir() throws java.io.IOException { - File testDir = new File(System.getProperty("test.build.data")); + File testDir = + new File(System.getProperty("test.build.data", "target/test-dir")); return Files.createTempDirectory(testDir.toPath(), "test").toFile(); } --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org