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

On Ubuntu 26.04, /bin/echo is the Rust coreutils multicall binary.
It picks the utility from argv[0], so a symlink named bootstrap exits 1.
Use /bin/sh instead, which does not depend on its name.
This commit is contained in:
TATSUNO “Taz” Yasuhiro authored and GitHub committed 2026-10-19 21:05:35 -04:00
1 parent ec6f8a9d81
commit 2fd6f43836
1 file changed
+4 -3
@@ -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