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