From: Ben Pfaff Date: Mon, 28 Apr 2014 22:59:40 +0000 (-0700) Subject: tests: Fix up "ofproto-dpif - ofproto-dpif-monitor 1". X-Git-Tag: sliver-openvswitch-2.2.90-1~3^2~57 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=738cd849aff11047070ee1fb7855e4b04bd6837d tests: Fix up "ofproto-dpif - ofproto-dpif-monitor 1". Commit 1335a8d578b03e (tests: Fix race condition waiting for monitor thread.) fixed a race condition in a test. Commit 8ba0a5227f6 (ovs-thread: Make caller provide thread name when creating a thread.) slightly changed the output that the test checked, breaking the test. However, I was used to the test occasionally failing due to the race (not realizing that the race had been fixed) so I applied the commit anyway. This commit fixes the broken test. Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at index a1442f9d0..a32bc4111 100644 --- a/tests/ofproto-dpif.at +++ b/tests/ofproto-dpif.at @@ -4516,12 +4516,12 @@ OVS_WAIT_UNTIL([grep "monitor thread created" ovs-vswitchd.log]) # disable bfd on p0. AT_CHECK([ovs-vsctl set interface p0 bfd:enable=false]) # check log, there should not be the log of thread terminated. -AT_CHECK([sed -n "s/^.*|ofproto_dpif_monitor(monitor)|INFO|\(.* terminated\)$/\1/p" ovs-vswitchd.log], [0], [dnl +AT_CHECK([sed -n "s/^.*|ofproto_dpif_monitor(monitor[[0-9]]*)|INFO|\(.* terminated\)$/\1/p" ovs-vswitchd.log], [0], [dnl ]) # reenable bfd on p0. AT_CHECK([ovs-vsctl set interface p0 bfd:enable=true]) # check log, should still be on log of thread created. -AT_CHECK([sed -n "s/^.*|ofproto_dpif_monitor(monitor)|INFO|\(.* created\)$/\1/p" ovs-vswitchd.log], [0], [dnl +AT_CHECK([sed -n "s/^.*|ofproto_dpif_monitor(monitor[[0-9]]*)|INFO|\(.* created\)$/\1/p" ovs-vswitchd.log], [0], [dnl monitor thread created ]) # disable bfd and cfm together.