Skip to content

armgit / floci

Public Imported from GitHub
0

Light, fluffy, and always free - The AWS Local Emulator alternative

test(lambda): run the binary bootstrap case on Ubuntu 26.04 (#6032)

TATSUNO “Taz” Yasuhiro2fd6f43836d2
diff --git a/src/test/java/io/github/hectorvent/floci/services/lambda/launcher/ProvidedRuntimeBootstrapTest.java b/src/test/java/io/github/hectorvent/floci/services/lambda/launcher/ProvidedRuntimeBootstrapTest.java
index cc1016ce3f..48577a0091 100644
--- a/src/test/java/io/github/hectorvent/floci/services/lambda/launcher/ProvidedRuntimeBootstrapTest.java
+++ b/src/test/java/io/github/hectorvent/floci/services/lambda/launcher/ProvidedRuntimeBootstrapTest.java
@@ -59,10 +59,11 @@ class ProvidedRuntimeBootstrapTest {
@Test
void executableBinaryRetainsArguments() throws Exception {
- Files.createSymbolicLink(task.resolve("bootstrap"), Path.of("/bin/echo"));
- Result result = run("binary", "two words");
+ // Not /bin/echo: on Ubuntu 26.04 it is a multicall binary that refuses to run as "bootstrap".
+ Files.createSymbolicLink(task.resolve("bootstrap"), Path.of("/bin/sh"));
+ Result result = run("-c", "printf '%s|' \"$@\"", "sh", "binary", "two words");
assertEquals(0, result.exit());
- assertEquals("binary two words\n", result.output());
+ assertEquals("binary|two words|", result.output());
}
@Test