diff --git a/tests/e2e/lib/utils b/tests/e2e/lib/utils index 40fe1117..a0597fa8 100644 --- a/tests/e2e/lib/utils +++ b/tests/e2e/lib/utils @@ -49,6 +49,7 @@ info_message() { } cleanup() { + info_message "Cleaning any existing artifacts that were generated during previous runs" output=$(podman ps -a --format "{{.Names}}") IFS=$'\n' # Set the internal field separator to newline @@ -66,5 +67,8 @@ cleanup() { rm -f ./*.node* fi done + info_message " - Removing podmanDualStack network..." + info_message " " + podman network rm podmanDualStack -f 1> /dev/null } diff --git a/tests/e2e/run-test-e2e b/tests/e2e/run-test-e2e index f5b551a7..72854a6f 100755 --- a/tests/e2e/run-test-e2e +++ b/tests/e2e/run-test-e2e @@ -176,13 +176,14 @@ then exit fi +cleanup + info_message "Creating dual stack network" podman network \ create --ipv6 --gateway fd00::1:8:1 --subnet fd00::1:8:0/112 \ --gateway 10.90.0.1 --subnet 10.90.0.0/16 podmanDualStack &> /dev/null info_message "Cleaning any previous e2e files" -cleanup echo info_message "Preparing ASIL environment" diff --git a/tests/e2e/tools/remove-containers b/tests/e2e/tools/remove-containers index 49c8ed19..912a160f 100755 --- a/tests/e2e/tools/remove-containers +++ b/tests/e2e/tools/remove-containers @@ -11,3 +11,5 @@ for node in ${output}; do podman rm "${node}" --force 1> /dev/null fi done + +podman network rm podmanDualStack -f