mirror of
https://github.com/containers/podman.git
synced 2025-05-20 00:27:03 +08:00
Avoid printing PR text to stdout in system test
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user