|
@@ -69,7 +69,7 @@ public class TestDockerContainerExecutorWithMocks {
|
|
|
|
|
|
@Before
|
|
@Before
|
|
public void setup() {
|
|
public void setup() {
|
|
- assumeTrue(!Path.WINDOWS);
|
|
|
|
|
|
+ assumeTrue(Shell.LINUX);
|
|
File f = new File("./src/test/resources/mock-container-executor");
|
|
File f = new File("./src/test/resources/mock-container-executor");
|
|
if(!FileUtil.canExecute(f)) {
|
|
if(!FileUtil.canExecute(f)) {
|
|
FileUtil.setExecutable(f, true);
|
|
FileUtil.setExecutable(f, true);
|
|
@@ -101,7 +101,9 @@ public class TestDockerContainerExecutorWithMocks {
|
|
@After
|
|
@After
|
|
public void tearDown() {
|
|
public void tearDown() {
|
|
try {
|
|
try {
|
|
- lfs.delete(workDir, true);
|
|
|
|
|
|
+ if (lfs != null) {
|
|
|
|
+ lfs.delete(workDir, true);
|
|
|
|
+ }
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
throw new RuntimeException(e);
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|