diff --git a/test/rtnetlink/linux/setlink_test.sh b/test/rtnetlink/linux/setlink_test.sh index 31463ee34..2931fc87d 100755 --- a/test/rtnetlink/linux/setlink_test.sh +++ b/test/rtnetlink/linux/setlink_test.sh @@ -28,3 +28,13 @@ if ! wait_for ! ip link show test_veth02; then exit 1 fi +# Create a new veth pair in the current namespace and rename the link. +ip link add name test_veth01 type veth peer name test_veth02 +ip link set test_veth01 name test_veth03 +ip link show test_veth03 +ip link del name test_veth03 +# Check that test_veth02 has been destroyed. +if ! wait_for ! ip link show test_veth02; then + fail "test_veth02 hasn't been destroyed" + exit 1 +fi diff --git a/test/rtnetlink/linux/veth_test.sh b/test/rtnetlink/linux/veth_test.sh index 4e24d3f02..d1c10fffa 100755 --- a/test/rtnetlink/linux/veth_test.sh +++ b/test/rtnetlink/linux/veth_test.sh @@ -30,17 +30,6 @@ if ! wait_for ! ip link show test_veth02; then exit 1 fi -# Create a new veth pair in the current namespace and rename the link. -ip link add name test_veth01 type veth peer name test_veth02 -ip link set test_veth01 name test_veth03 -ip link show test_veth03 -ip link del name test_veth03 -# Check that test_veth02 has been destroyed. -if ! wait_for ! ip link show test_veth02; then - fail "test_veth02 hasn't been destroyed" - exit 1 -fi - ip netns add test ip link add test_veth01 type veth peer name test_veth02 netns test ip link show test_veth01