JAL-1889 added belt and braces deleteOnExit() to test output file
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 21 Mar 2019 15:44:48 +0000 (15:44 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 21 Mar 2019 15:44:48 +0000 (15:44 +0000)
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 + "]";