]> git.proxmox.com Git - mirror_ubuntu-impish-kernel.git/commitdiff
UBUNTU: SAUCE: selftests: net: Don't fail test_vxlan_under_vrf on xfail
authorSeth Forshee <seth.forshee@canonical.com>
Wed, 27 Feb 2019 14:17:08 +0000 (08:17 -0600)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 28 Jun 2021 06:03:47 +0000 (08:03 +0200)
I changed the test for VXLAN underlay in non-default VRF to print
XFAIL for expected failure, but the script still exits with an
error which makes the test overall fail. Fix this to still exit
successfully following the xfail.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
tools/testing/selftests/net/test_vxlan_under_vrf.sh

index 91b1f50ec2411c5630315b31ce663dcbed45ef76..9b919ac98ee42ce92c94706ee60f4c60cab5e282 100755 (executable)
@@ -125,5 +125,8 @@ ip -netns hv-2 link set veth0 down
 ip -netns hv-2 link set veth0 up
 
 echo -n "Check VM connectivity through VXLAN (underlay in a VRF)            "
-ip netns exec vm-1 ping -c 1 -W 1 10.0.0.2 &> /dev/null || (echo "[XFAIL]"; false)
-echo "[ OK ]"
+if ! ip netns exec vm-1 ping -c 1 -W 1 10.0.0.2 &> /dev/null; then
+    echo "[XFAIL]"
+else
+    echo "[ OK ]"
+fi