@@ -5135,7 +5135,7 @@ OVS_WAIT_UNTIL([
ip netns exec sw0-p1-rej nc -u 10.0.0.4 90 < foo
c=$(cat sw0-p1-rej-icmp.pcap | grep \
"10.0.0.4 > 10.0.0.3: ICMP 10.0.0.4 udp port 90 unreachable" | uniq | wc -l)
- test $c -eq 1
+ test $c -ge 1
])
kill $(pidof tcpdump)
@@ -5148,7 +5148,7 @@ OVS_WAIT_UNTIL([
ip netns exec sw0-p1-rej nc -u 10.0.0.4 94 < foo
c=$(cat sw0-p1-rej-icmp.pcap | grep \
"10.0.0.4 > 10.0.0.3: ICMP 10.0.0.4 udp port 94 unreachable" | uniq | wc -l)
- test $c -eq 1
+ test $c -ge 1
])
kill $(pidof tcpdump)
@@ -5161,7 +5161,7 @@ OVS_WAIT_UNTIL([
c=$(cat sw0-p2-rej-icmp6.pcap | grep \
"IP6 aef0::3 > aef0::4: ICMP6, destination unreachable, unreachable port, \
aef0::3 udp port 90" | uniq | wc -l)
- test $c -eq 1
+ test $c -ge 1
])
kill $(pidof tcpdump)
@@ -5175,7 +5175,7 @@ OVS_WAIT_UNTIL([
c=$(cat sw0-p2-rej-icmp6.pcap | grep \
"IP6 aef0::3 > aef0::4: ICMP6, destination unreachable, unreachable port, \
aef0::3 udp port 94" | uniq | wc -l)
- test $c -eq 1
+ test $c -ge 1
])
kill $(pidof tcpdump)
@@ -5201,7 +5201,7 @@ OVS_WAIT_UNTIL([
ip netns exec sw0-p1-rej nc -u 10.0.0.4 90 < foo
c=$(cat sw0-p1-rej-icmp.pcap | grep \
"10.0.0.4 > 10.0.0.3: ICMP 10.0.0.4 udp port 90 unreachable" | uniq | wc -l)
- test $c -eq 1
+ test $c -ge 1
])
kill $(pidof tcpdump)
@@ -5214,7 +5214,7 @@ OVS_WAIT_UNTIL([
c=$(cat sw0-p2-rej-icmp6.pcap | grep \
"IP6 aef0::3 > aef0::4: ICMP6, destination unreachable, unreachable port, \
aef0::3 udp port 90" | uniq | wc -l)
- test $c -eq 1
+ test $c -ge 1
])
kill $(pidof tcpdump)
@@ -5385,7 +5385,7 @@ OVS_WAIT_UNTIL([
ip netns exec sw0-p1-rej nc -u 10.0.0.4 90 < foo
c=$(cat sw0-p1-rej-icmp.pcap | grep \
"10.0.0.4 > 10.0.0.3: ICMP 10.0.0.4 udp port 90 unreachable" | uniq | wc -l)
- test $c -eq 1
+ test $c -ge 1
])
kill $(pidof tcpdump)
@@ -5398,7 +5398,7 @@ OVS_WAIT_UNTIL([
ip netns exec sw0-p1-rej nc -u 10.0.0.4 94 < foo
c=$(cat sw0-p1-rej-icmp.pcap | grep \
"10.0.0.4 > 10.0.0.3: ICMP 10.0.0.4 udp port 94 unreachable" | uniq | wc -l)
- test $c -eq 1
+ test $c -ge 1
])
kill $(pidof tcpdump)
@@ -5412,7 +5412,7 @@ OVS_WAIT_UNTIL([
c=$(cat sw0-p2-rej-icmp6.pcap | grep \
"IP6 aef0::3 > aef0::4: ICMP6, destination unreachable, unreachable port, \
aef0::3 udp port 90" | uniq | wc -l)
- test $c -eq 1
+ test $c -ge 1
])
kill $(pidof tcpdump)
@@ -5426,7 +5426,7 @@ OVS_WAIT_UNTIL([
c=$(cat sw0-p2-rej-icmp6.pcap | grep \
"IP6 aef0::3 > aef0::4: ICMP6, destination unreachable, unreachable port, \
aef0::3 udp port 94" | uniq | wc -l)
- test $c -eq 1
+ test $c -ge 1
])
# Delete all the ACLs of pg0 and add the ACL with a generic match with reject action.
@@ -5452,7 +5452,7 @@ OVS_WAIT_UNTIL([
ip netns exec sw0-p1-rej nc -u 10.0.0.4 90 < foo
c=$(cat sw0-p1-rej-icmp.pcap | grep \
"10.0.0.4 > 10.0.0.3: ICMP 10.0.0.4 udp port 90 unreachable" | uniq | wc -l)
- test $c -eq 1
+ test $c -ge 1
])
kill $(pidof tcpdump)
@@ -5465,7 +5465,7 @@ OVS_WAIT_UNTIL([
c=$(cat sw0-p2-rej-icmp6.pcap | grep \
"IP6 aef0::3 > aef0::4: ICMP6, destination unreachable, unreachable port, \
aef0::3 udp port 90" | uniq | wc -l)
- test $c -eq 1
+ test $c -ge 1
])
kill $(pidof tcpdump)
The tests are looking for specific output from tcpdump counting number of occurrences and expecting only 1. It might happen that in the time period there are already two or more packets and the test simply fails. Change the condition to be greater or equal to one. Signed-off-by: Ales Musil <amusil@redhat.com> --- tests/system-ovn.at | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)