diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-11-01 06:27:13 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2022-01-12 08:32:42 -0500 |
commit | fde6ad637355ee27929da084e2920ef2b730875c (patch) | |
tree | b764a8dfacc5ef200b753648e76e2032d6645237 /test/system/500-networking.bats | |
parent | c75c6ce908652afad82612f7d9096925140f19b1 (diff) | |
download | podman-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/500-networking.bats')
-rw-r--r-- | test/system/500-networking.bats | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/system/500-networking.bats b/test/system/500-networking.bats index 2b5ad44dc..5a721c965 100644 --- a/test/system/500-networking.bats +++ b/test/system/500-networking.bats @@ -332,7 +332,8 @@ load helpers is_rootless || skip "only meaningful for rootless" local mynetname=testnet-$(random_string 10) - run_podman network create $mynetname + run_podman --noout network create $mynetname + is "$output" "" "output should be empty" # Test that rootless cni adds /usr/sbin to $PATH # iptables is located under /usr/sbin and is needed for the CNI plugins. @@ -340,7 +341,8 @@ load helpers PATH=/usr/local/bin:/usr/bin run_podman run --rm --network $mynetname $IMAGE ip addr is "$output" ".*eth0.*" "Interface eth0 not found in ip addr output" - run_podman network rm -t 0 -f $mynetname + run_podman --noout network rm -t 0 -f $mynetname + is "$output" "" "output should be empty" } @test "podman ipv6 in /etc/resolv.conf" { |