From 4c970088afefe5395c18c6715c7b27e6c0358c96 Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Wed, 25 Oct 2017 17:17:21 +0900 Subject: [PATCH] HADOOP-14030. PreCommit TestKDiag failure. Contributed by Wei-Chiu Chuang. --- .../src/test/java/org/apache/hadoop/security/TestKDiag.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestKDiag.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestKDiag.java index b81c4c5176..e395566dae 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestKDiag.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestKDiag.java @@ -67,7 +67,7 @@ public static void nameThread() { @BeforeClass public static void startMiniKdc() throws Exception { - workDir = new File(System.getProperty("test.dir", "target")); + workDir = GenericTestUtils.getTestDir(TestKDiag.class.getSimpleName()); securityProperties = MiniKdc.createConf(); kdc = new MiniKdc(securityProperties, workDir); kdc.start();