summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/test_vxlan_under_vrf.sh
diff options
context:
space:
mode:
authorPo-Hsu Lin <po-hsu.lin@canonical.com>2020-12-11 07:24:20 +0300
committerJakub Kicinski <kuba@kernel.org>2020-12-15 04:38:12 +0300
commit0e12c0271887f1b00b79b7612c1d4f0d3d34e8a8 (patch)
tree439293477aa0c04d7abf73422d5b9c471d5d1cb7 /tools/testing/selftests/net/test_vxlan_under_vrf.sh
parent6d4634d1b09172a9f5863d8c4cec8f82fbecdf15 (diff)
downloadlinux-0e12c0271887f1b00b79b7612c1d4f0d3d34e8a8.tar.xz
selftests: test_vxlan_under_vrf: mute unnecessary error message
The cleanup function in this script that tries to delete hv-1 / hv-2 vm-1 / vm-2 netns will generate some uncessary error messages: Cannot remove namespace file "/run/netns/hv-2": No such file or directory Cannot remove namespace file "/run/netns/vm-1": No such file or directory Cannot remove namespace file "/run/netns/vm-2": No such file or directory Redirect it to /dev/null like other commands in the cleanup function to reduce confusion. Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com> Link: https://lore.kernel.org/r/20201211042420.16411-1-po-hsu.lin@canonical.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/test_vxlan_under_vrf.sh')
-rwxr-xr-xtools/testing/selftests/net/test_vxlan_under_vrf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/test_vxlan_under_vrf.sh b/tools/testing/selftests/net/test_vxlan_under_vrf.sh
index 09f9ed92cbe4..534c8b7699ab 100755
--- a/tools/testing/selftests/net/test_vxlan_under_vrf.sh
+++ b/tools/testing/selftests/net/test_vxlan_under_vrf.sh
@@ -50,7 +50,7 @@ cleanup() {
ip link del veth-tap 2>/dev/null || true
for ns in hv-1 hv-2 vm-1 vm-2; do
- ip netns del $ns || true
+ ip netns del $ns 2>/dev/null || true
done
}