From 2fd6f43836d28b45ffad4f350e43d8d70e8b38fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TATSUNO=20=E2=80=9CTaz=E2=80=9D=20Yasuhiro?= Date: Tue, 20 Oct 2026 10:05:35 +0900 Subject: [PATCH] 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. --- .../lambda/launcher/ProvidedRuntimeBootstrapTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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