From e356dfe06b7a1a0f28815c9a1d591f7886570d2f Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Mon, 21 Feb 2022 21:55:03 +0100 Subject: 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 --- test/system/helpers.bash | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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 } -- cgit v1.2.3-54-g00ecf