Skip to content

Commit

Permalink
UBUNTU: SAUCE: selftests: net: Don't fail test_vxlan_under_vrf on xfail
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Seth Forshee committed Mar 4, 2019
1 parent 6ac68a8 commit d3fb410
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/testing/selftests/net/test_vxlan_under_vrf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d3fb410

Please sign in to comment.