From 4590b663a73fcc2d58ddde4f54b8b06e0998566a Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Thu, 7 Dec 2023 18:19:02 +0100 Subject: [PATCH] add test for podman exec --env-file There was no test for this option, resuse existing podman run --env-file test for exec as well. Signed-off-by: Paul Holzinger --- test/system/300-cli-parsing.bats | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/test/system/300-cli-parsing.bats b/test/system/300-cli-parsing.bats index 83b9ebad95..16110e60ef 100644 --- a/test/system/300-cli-parsing.bats +++ b/test/system/300-cli-parsing.bats @@ -100,7 +100,7 @@ function _check_env { } -@test "podman run --env-file" { +@test "podman run/exec --env-file" { declare -A expect=( [simple]="abc" [special]="bcd#e!f|g hij=lmnop" @@ -116,7 +116,7 @@ function _check_env { # Write two files, so we confirm that podman can accept multiple values # and that the second will override the first - local envfile1="$PODMAN_TMPDIR/envfile-in-1" + local envfile1="$PODMAN_TMPDIR/envfile-in-1,withcomma" local envfile2="$PODMAN_TMPDIR/envfile-in-2" cat >$envfile1 </envresults' + + _check_env $resultsfile + + run_podman rm -f -t0 testctr } # Obscure feature: '--env FOO*' will pass all env starting with FOO