From b19251242ef827c5188e172d229f2a238dc13d6c 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/system') diff --git a/test/system/helpers.bash b/test/system/helpers.bash index ee5f73867..221315b97 100644 --- a/test/system/helpers.bash +++ b/test/system/helpers.bash @@ -108,6 +108,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