tests: Fix intermittent failure in ovs-monitor-ipsec test.
authorJesse Gross <jesse@nicira.com>
Thu, 27 Oct 2011 04:14:46 +0000 (21:14 -0700)
committerJesse Gross <jesse@nicira.com>
Thu, 27 Oct 2011 04:34:53 +0000 (21:34 -0700)
The ovs-monitor-ipsec test waits for a specific number of lines
of output before doing a comparison to the correct values.  However,
some copy and pasted code did not update the number of lines to
look for resulting in a race condition where the comparison could
happen before the script finished running.

tests/ovs-monitor-ipsec.at

index f9868e7..ab14462 100644 (file)
@@ -238,7 +238,7 @@ AT_CHECK([ovs_vsctl set-ssl /ssl-key.pem /ssl-cert.pem /ssl-cacert.pem \
 -----END CERTIFICATE-----
 "' \
                  options:use_ssl_cert='"true"'])
-OVS_WAIT_UNTIL([test `wc -l < actions` -ge 21])
+OVS_WAIT_UNTIL([test `wc -l < actions` -ge 33])
 AT_CHECK([sed '1,29d' actions], [0], [dnl
 racoon: reload
 setkey:
@@ -283,7 +283,7 @@ AT_CHECK([cat etc/racoon/certs/ovs-3.4.5.6.pem], [0], [dnl
 ### Delete the SSL certificate interface.
 ###
 AT_CHECK([ovs_vsctl del-port gre2])
-OVS_WAIT_UNTIL([test `wc -l < actions` -ge 29])
+OVS_WAIT_UNTIL([test `wc -l < actions` -ge 41])
 AT_CHECK([sed '1,33d' actions], [0], [dnl
 racoon: reload
 setkey: