diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-02-21 21:55:03 +0100 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2022-02-23 14:30:02 -0500 |
commit | e356dfe06b7a1a0f28815c9a1d591f7886570d2f (patch) | |
tree | eb38fd3d56104d344b47cf866d1e32da943ad59b | |
parent | 71b0909f2d71e542176a3e88111bf99c73d1f5cd (diff) | |
download | podman-e356dfe06b7a1a0f28815c9a1d591f7886570d2f.tar.gz podman-e356dfe06b7a1a0f28815c9a1d591f7886570d2f.tar.bz2 podman-e356dfe06b7a1a0f28815c9a1d591f7886570d2f.zip |
system tests: cleanup networks on teardown
When a test which creates a network fail it will not remove the network.
The teardown logic should remove the networks. Since there is no --all
option for network rm we use network prune --force.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
-rw-r--r-- | test/system/helpers.bash | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/system/helpers.bash b/test/system/helpers.bash index c622a5172..676f80013 100644 --- a/test/system/helpers.bash +++ b/test/system/helpers.bash @@ -111,6 +111,7 @@ function basic_teardown() { echo "# [teardown]" >&2 run_podman '?' pod rm -t 0 --all --force --ignore run_podman '?' rm -t 0 --all --force --ignore + run_podman '?' network prune --force command rm -rf $PODMAN_TMPDIR } |