MAPREDUCE-7023. TestHadoopArchiveLogs.testCheckFilesAndSeedApps fails on rerun
Signed-off-by: Akira Ajisaka <aajisaka@apache.org> (cherry picked from commit e99a1e77671fa0e74a652bc2221bbe01d1a579d3)
This commit is contained in:
parent
9e5ac217ac
commit
162e99c696
@ -61,6 +61,8 @@ public void testCheckFilesAndSeedApps() throws Exception {
|
|||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user