From cbf1d7fcaed9be5c4edc9a3d7583c001a6e392fb Mon Sep 17 00:00:00 2001 From: Mario Loriedo Date: Thu, 7 Nov 2024 16:58:46 +0100 Subject: [PATCH] Avoid printing PR text to stdout in system test Signed-off-by: Mario Loriedo --- test/system/800-config.bats | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/system/800-config.bats b/test/system/800-config.bats index d099cde825..9c7973a394 100644 --- a/test/system/800-config.bats +++ b/test/system/800-config.bats @@ -227,7 +227,9 @@ EOF cname="$output" # Make sure `env_host` is read - run_podman container inspect $cname --format "{{.Config.Env}}" + # Only print the env vars that start with "FOO" to avoid printing output that + # may be considered problematic (see run_podman in helpers.bash). + run_podman container inspect $cname --format '{{range .Config.Env}} {{if eq "F" (slice . 0 1) }} {{.}} {{end}} {{end}}' assert "$output" =~ "FOO=$random_env_var" "--module should yield injecting host env vars into the container" # Make sure `privileged` is read during container creation