mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
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:
1 parent
ec6f8a9d81
commit
2fd6f43836
1 file changed
+4
-3
+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
|
||||
|
||||
Reference in new issue
Block a user