aboutsummaryrefslogtreecommitdiff
path: root/test/system/030-run.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/030-run.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/030-run.bats')
-rw-r--r--test/system/030-run.bats15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats
index feca5370b..afcda3d3c 100644
--- a/test/system/030-run.bats
+++ b/test/system/030-run.bats
@@ -509,6 +509,21 @@ json-file | f
rm -f $new_runtime
}
+@test "podman --noout run should print output" {
+ run_podman --noout run -d --name test $IMAGE echo hi
+ is "$output" "" "output should be empty"
+ run_podman wait test
+ run_podman --noout rm test
+ is "$output" "" "output should be empty"
+}
+
+@test "podman --noout create should print output" {
+ run_podman --noout create --name test $IMAGE echo hi
+ is "$output" "" "output should be empty"
+ run_podman --noout rm test
+ is "$output" "" "output should be empty"
+}
+
# Regression test for issue #8082
@test "podman run : look up correct image name" {
# Create a 2nd tag for the local image. Force to lower case, and apply it.