JAL-1889 added belt and braces deleteOnExit() to test output file
[jalview.git] / test / jalview / bin / CommandLineOperations.java
index e878e25..c7b1d53 100644 (file)
@@ -250,6 +250,7 @@ public class CommandLineOperations
     String cmd = harg + type + " " + fileName;
     // System.out.println(">>>>>>>>>>>>>>>> Command : " + cmd);
     File file = new File(fileName);
+    file.deleteOnExit();
     Worker worker = getJalviewDesktopRunner(withAWT, cmd, timeout);
     assertNotNull(worker, "worker is null");
     String msg = "Didn't create an output" + type + " file.[" + harg + "]";