mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-25 16:31:53 +08:00
ci: websphere agent test failed
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ public class ShellAssertionTool {
|
|||||||
Path tempJar = Files.createTempFile("temp", "jar");
|
Path tempJar = Files.createTempFile("temp", "jar");
|
||||||
Files.write(tempJar, bytes);
|
Files.write(tempJar, bytes);
|
||||||
String jarPath = "/" + shellTool + shellType + packer.name() + ".jar";
|
String jarPath = "/" + shellTool + shellType + packer.name() + ".jar";
|
||||||
container.copyFileToContainer(MountableFile.forHostPath(tempJar, 644), jarPath);
|
container.copyFileToContainer(MountableFile.forHostPath(tempJar, 0100666), jarPath);
|
||||||
FileUtils.deleteQuietly(tempJar.toFile());
|
FileUtils.deleteQuietly(tempJar.toFile());
|
||||||
String pidInContainer = container.execInContainer("bash", "/fetch_pid.sh").getStdout();
|
String pidInContainer = container.execInContainer("bash", "/fetch_pid.sh").getStdout();
|
||||||
assertDoesNotThrow(() -> Long.parseLong(pidInContainer));
|
assertDoesNotThrow(() -> Long.parseLong(pidInContainer));
|
||||||
|
|||||||
Reference in New Issue
Block a user