diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ec9b202ece..95e70fd687 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,6 +22,6 @@ repos: - id: check-yaml - repo: https://github.com/codespell-project/codespell # Configuration for codespell is in .codespellrc - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell diff --git a/test/system/800-config.bats b/test/system/800-config.bats index d099cde825..930aeb63bd 100644 --- a/test/system/800-config.bats +++ b/test/system/800-config.bats @@ -226,8 +226,10 @@ EOF FOO="$random_env_var" run_podman --module=$conf_tmp run -d --name=$cname $IMAGE top cname="$output" - # Make sure `env_host` is read - run_podman container inspect $cname --format "{{.Config.Env}}" + # Make sure `env_host` is read. + # 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 "FOO" (slice . 0 3) }} {{.}} {{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