Skip to content

Commit

Permalink
tests: Have tests fail when adding veth peer fails.
Browse files Browse the repository at this point in the history
Before this patch, the test was seen as "skipped" if ip link
was failing.

Signed-off-by: Xavier Simonart <xsimonar@redhat.com>
Signed-off-by: Mark Michelson <mmichels@redhat.com>
  • Loading branch information
simonartxavier authored and putnopvut committed Feb 19, 2024
1 parent 19f1dc4 commit 87985ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/system-common-macros.at
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ m4_define([ADD_BR], [ovs-vsctl _ADD_BR([$1]) -- $2])
# The existing 'port' or 'ovs-port' will be removed before new ones are added.
#
m4_define([ADD_VETH],
[ AT_CHECK([ip link add $1 type veth peer name ovs-$1 || return 77])
[ AT_CHECK([ip link add $1 type veth peer name ovs-$1])
CONFIGURE_VETH_OFFLOADS([$1])
AT_CHECK([ip link set $1 netns $2])
AT_CHECK([ip link set dev ovs-$1 up])
Expand Down

0 comments on commit 87985ac

Please sign in to comment.