summaryrefslogtreecommitdiff
path: root/test/system/200-pod.bats
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-11-01 06:27:13 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2022-01-12 08:32:42 -0500
commitfde6ad637355ee27929da084e2920ef2b730875c (patch)
treeb764a8dfacc5ef200b753648e76e2032d6645237 /test/system/200-pod.bats
parentc75c6ce908652afad82612f7d9096925140f19b1 (diff)
downloadpodman-fde6ad637355ee27929da084e2920ef2b730875c.tar.gz
podman-fde6ad637355ee27929da084e2920ef2b730875c.tar.bz2
podman-fde6ad637355ee27929da084e2920ef2b730875c.zip
Add --noout option to prevent the output of ids
Fixes: https://github.com/containers/podman/issues/11515 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/system/200-pod.bats')
-rw-r--r--test/system/200-pod.bats6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/system/200-pod.bats b/test/system/200-pod.bats
index 6abdf9779..4a3337e57 100644
--- a/test/system/200-pod.bats
+++ b/test/system/200-pod.bats
@@ -57,7 +57,8 @@ function teardown() {
fi
# Clean up
- run_podman pod rm -f -t 0 $podid
+ run_podman --noout pod rm -f -t 0 $podid
+ is "$output" "" "output should be empty"
}
@@ -330,7 +331,8 @@ EOF
# Note that the internal pause image is built even when --infra-image is
# set to the K8s one.
- run_podman pod create --name $pod_name --infra-name "$infra_name" --infra-image "k8s.gcr.io/pause:3.5"
+ run_podman --noout pod create --name $pod_name --infra-name "$infra_name" --infra-image "k8s.gcr.io/pause:3.5"
+ is "$output" "" "output should be empty"
run_podman '?' pod create --infra-name "$infra_name"
if [ $status -eq 0 ]; then
die "Podman should fail when user try to create two pods with the same infra-name value"