MAPREDUCE-7023. TestHadoopArchiveLogs.testCheckFilesAndSeedApps fails on rerun

Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
(cherry picked from commit e99a1e7767)
This commit is contained in:
Gergely Novák 2018-03-02 16:15:04 -08:00 committed by Akira Ajisaka
parent 0a3a878428
commit 278676508f
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,8 @@ public class TestHadoopArchiveLogs {
Path rootLogDir = new Path("target", "logs"); Path rootLogDir = new Path("target", "logs");
String suffix = "logs"; String suffix = "logs";
Path logDir = new Path(rootLogDir, new Path(USER, suffix)); Path logDir = new Path(rootLogDir, new Path(USER, suffix));
fs.delete(logDir, true);
Assert.assertFalse(fs.exists(logDir));
fs.mkdirs(logDir); fs.mkdirs(logDir);
// no files found // no files found