diff --git a/pom.xml b/pom.xml index bd526afe..2d50e219 100644 --- a/pom.xml +++ b/pom.xml @@ -16,7 +16,7 @@ ${java.version} ${java.version} UTF-8 - 4.1.0 + 4.1.1 false diff --git a/src/test/java/am/ik/rontolisp/e2e/AsdfLibraryE2eSupport.java b/src/test/java/am/ik/rontolisp/e2e/AsdfLibraryE2eSupport.java index 4cbd87bd..693b31c7 100644 --- a/src/test/java/am/ik/rontolisp/e2e/AsdfLibraryE2eSupport.java +++ b/src/test/java/am/ik/rontolisp/e2e/AsdfLibraryE2eSupport.java @@ -220,12 +220,13 @@ protected Class findClass(String n) throws ClassNotFoundException { // from the project root): a file round-trip after a library load is part of what // these tests pin (the close methods). private String runWasm(byte[] wasmBytes, boolean component) throws Exception { - String path = "/tmp/" + artifactName() + (component ? "-component.wasm" : "-p1.wasm"); + String runDir = "/tmp/" + artifactName() + (component ? "-component-" : "-p1-") + System.nanoTime(); + String path = runDir + "/module.wasm"; GenericContainer wasmtime = WasmtimeSupport.container(); wasmtime.copyFileToContainer(Transferable.of(wasmBytes), path); String flags = component ? "run -W gc=y -W exceptions=y" : "--wasm gc --wasm exceptions=y"; ExecResult result = wasmtime.execInContainer("bash", "-c", - "mkdir -p /tmp/target && cd /tmp && wasmtime " + flags + " --dir . " + path); + "mkdir -p " + runDir + "/target && cd " + runDir + " && wasmtime " + flags + " --dir . " + path); assertThat(result.getExitCode()).as("exit code (component=%s): stderr: %s", component, result.getStderr()) .isZero(); return result.getStdout().trim();