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>
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