delete the integration test temp files when the test is over
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1727 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
2b7d39035a
commit
130a01a40a
|
|
@ -101,7 +101,9 @@ public class WalkerTest extends BaseTest {
|
||||||
List<File> tmpFiles = new ArrayList<File>();
|
List<File> tmpFiles = new ArrayList<File>();
|
||||||
for ( int i = 0; i < spec.nOutputFiles; i++ ) {
|
for ( int i = 0; i < spec.nOutputFiles; i++ ) {
|
||||||
try {
|
try {
|
||||||
tmpFiles.add( File.createTempFile(String.format("walktest.tmp_param.%d", i), ".tmp" ) );
|
File fl = File.createTempFile(String.format("walktest.tmp_param.%d", i), ".tmp" );
|
||||||
|
fl.deleteOnExit();
|
||||||
|
tmpFiles.add( fl );
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
System.err.println("Cannot create temp file: " + ex.getMessage());
|
System.err.println("Cannot create temp file: " + ex.getMessage());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue