1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-09-01 10:07:56 +00:00

Make the test-file directory when running tests

This commit is contained in:
SquidDev
2018-12-26 10:53:56 +00:00
parent 4d5c52bc63
commit d9f03f3ec7
2 changed files with 2 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ public class FilesystemMountTest
public static void before() throws IOException public static void before() throws IOException
{ {
if( ZIP_FILE.exists() ) return; if( ZIP_FILE.exists() ) return;
ZIP_FILE.getParentFile().mkdirs();
try( ZipOutputStream stream = new ZipOutputStream( new FileOutputStream( ZIP_FILE ) ) ) try( ZipOutputStream stream = new ZipOutputStream( new FileOutputStream( ZIP_FILE ) ) )
{ {

View File

@@ -29,6 +29,7 @@ public class JarMountTest
public static void before() throws IOException public static void before() throws IOException
{ {
if( ZIP_FILE.exists() ) return; if( ZIP_FILE.exists() ) return;
ZIP_FILE.getParentFile().mkdirs();
try( ZipOutputStream stream = new ZipOutputStream( new FileOutputStream( ZIP_FILE ) ) ) try( ZipOutputStream stream = new ZipOutputStream( new FileOutputStream( ZIP_FILE ) ) )
{ {