Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.util.UUID;

import static org.junit.jupiter.api.Assertions.assertTrue;

Expand All @@ -43,8 +44,7 @@ public class FSConfigConverterTestCommons {
new File(TEST_DIR, "test-yarn-site.xml").getAbsolutePath();
public final static String CONVERSION_RULES_FILE =
new File(TEST_DIR, "test-conversion-rules.properties").getAbsolutePath();
public final static String OUTPUT_DIR =
new File(TEST_DIR, "conversion-output").getAbsolutePath();
public static String OUTPUT_DIR;

private final ByteArrayOutputStream outContent = new ByteArrayOutputStream();
private final ByteArrayOutputStream errContent = new ByteArrayOutputStream();
Expand All @@ -57,7 +57,11 @@ public FSConfigConverterTestCommons() {
}

public void setUp() throws IOException {
File d = new File(TEST_DIR, "conversion-output");
String uuid = UUID.randomUUID().toString().trim();
OUTPUT_DIR =
new File(TEST_DIR, "conversion-output" + uuid).getAbsolutePath();
File d = new File(TEST_DIR, "conversion-output" + uuid);

if (d.exists()) {
FileUtils.deleteDirectory(d);
}
Expand Down