From 0a4cc77570815f7bc752e74d8798066c5dadfab3 Mon Sep 17 00:00:00 2001 From: Rodrigo Campos Date: Wed, 17 Jun 2026 13:20:31 +0200 Subject: [PATCH] tests: Clarify the interface might not be on the host We try to delete the interface, but it lot of tests it won't be there unless we failed to move it to the container. Let's just clarify that in a comment and redirect the error output to /dev/null, as it seems an error otherwise while it is completely normal. Signed-off-by: Rodrigo Campos (cherry picked from commit bb9d1ccaba4189791017d97b5964be0f97051e5e) --- tests/integration/netdev.bats | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/integration/netdev.bats b/tests/integration/netdev.bats index 25b36e5d5..daf8c22df 100644 --- a/tests/integration/netdev.bats +++ b/tests/integration/netdev.bats @@ -35,7 +35,10 @@ function setup() { } function teardown() { - ip link del dev dummy0 + # The interface might be on the host or not, depending the test. If it's on the host, let's + # delete it. + ip link del dev dummy0 2>/dev/null + delete_netns teardown_bundle }