Skip to content

Commit

Permalink
test: remove openvswitch kernel module on test failure
Browse files Browse the repository at this point in the history
Improve test failure handling.

Signed-off-by: Andy Zhou <[email protected]>
Signed-off-by: Joe Stringer <[email protected]>
  • Loading branch information
azhou-nicira committed Feb 6, 2015
1 parent 128f4e3 commit b7ca9d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/kmod-macros.at
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#
m4_define([OVS_KMOD_VSWITCHD_START],
[ AT_CHECK([modprobe openvswitch])
ON_EXIT([modprobe -r openvswitch])
_OVS_VSWITCHD_START([])
dnl Add bridges, ports, etc.
AT_CHECK([ovs-vsctl -- add-br br0 -- set bridge br0 protocols=[[OpenFlow10,OpenFlow11,OpenFlow12,OpenFlow13,OpenFlow14,OpenFlow15]] fail-mode=secure -- $1 m4_if([$2], [], [], [| ${PERL} $srcdir/uuidfilt.pl])], [0], [$2])
Expand Down

0 comments on commit b7ca9d0

Please sign in to comment.