diff mbox series

[ovs-dev,v3,01/11] test: ovn: Fix typos in unit-test

Message ID d4dc37a0cbf0b18e33a082e0962a3ef6c9ce67d8.1730917155.git.lorenzo.bianconi@redhat.com
State Accepted
Headers show
Series Use check for ovn-nbctl/ovn-sbctl wherever possible. | expand

Checks

Context Check Description
ovsrobot/apply-robot warning apply and check: warning
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes success github build: passed

Commit Message

Lorenzo Bianconi Nov. 6, 2024, 6:21 p.m. UTC
Reported-at: https://issues.redhat.com/browse/FDP-875
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
---
 tests/ovn.at | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/tests/ovn.at b/tests/ovn.at
index a8eb5b0a6..dc07c09de 100644
--- a/tests/ovn.at
+++ b/tests/ovn.at
@@ -8984,7 +8984,7 @@  mac_prefix=$(ovn-nbctl --wait=sb get NB_Global . options:mac_prefix | tr -d \")
 port_addr=$(ovn-nbctl get Logical-Switch-Port p141 dynamic_addresses | tr -d \")
 AT_CHECK([test "$mac_prefix" != "00:00:00:00:00:00"], [0], [])
 AT_CHECK([test "$port_addr" = "${mac_prefix}:00:00:0a"], [0], [])
-ovn-nbctl --wait=sb lsp-del sw14 p141
+check ovn-nbctl --wait=sb lsp-del p141
 ovn-nbctl --wait=sb ls-del sw14
 
 ovn-nbctl --wait=hv set NB_Global . options:mac_prefix="00:11:22"
@@ -14590,7 +14590,7 @@  ovn-nbctl lsp-set-addresses sw1_ip6-port1 \
 "50:64:00:00:01:02 aef1::5264:00ff:fe00:0002"
 
 ovn-nbctl lr-add lr1_ip6
-ovn-nbctl lrp-add lr1_ip6 00:00:00:01:af:01 aef1:0:0:0:0:0:0:0/64
+check ovn-nbctl lrp-add lr1_ip6 lrp1_ip6 00:00:00:01:af:01 aef1:0:0:0:0:0:0:0/64
 ovn-nbctl lsp-add sw1_ip6 lrp1_ip6-attachment
 ovn-nbctl lsp-set-type lrp1_ip6-attachment router
 ovn-nbctl lsp-set-addresses lrp1_ip6-attachment router
@@ -22670,7 +22670,7 @@  packet0="inport==\"sw0-p11\" && eth.src==00:00:00:00:00:11 && eth.dst==00:00:00:
          ip4 && ip.ttl==64 && ip4.src==192.168.1.11 && ip4.dst==192.168.1.100 &&
          tcp && tcp.src==10000 && tcp.dst==80"
 OVS_WAIT_UNTIL([as hv1 ovs-appctl -t ovn-controller inject-pkt "$packet0"])
-ovn-nbctl --wait=hv
+check ovn-nbctl --wait=hv sync
 
 ovn-sbctl list controller_event > events
 AT_CAPTURE_FILE([events])
@@ -22699,7 +22699,7 @@  packet1="inport==\"sw1-p0\" && eth.src==00:00:00:00:00:33 && eth.dst==00:00:00:0
          tcp && tcp.src==10000 && tcp.dst==80"
 
 OVS_WAIT_UNTIL([as hv1 ovs-appctl -t ovn-controller inject-pkt "$packet1"])
-ovn-nbctl --wait=hv
+check ovn-nbctl --wait=hv sync
 ovn-sbctl list controller_event
 uuid=$(ovn-sbctl list controller_event | awk '/_uuid/{print $3}')
 AT_CHECK([ovn-sbctl get controller_event $uuid event_type], [0], [dnl
@@ -22715,7 +22715,7 @@  packet2="inport==\"sw0-p11\" && eth.src==00:00:00:00:00:11 && eth.dst==00:00:00:
          tcp && tcp.src==10000 && tcp.dst==50051"
 
 OVS_WAIT_UNTIL([as hv1 ovs-appctl -t ovn-controller inject-pkt "$packet2"])
-ovn-nbctl --wait=hv
+check ovn-nbctl --wait=hv sync
 ovn-sbctl list controller_event
 uuid=$(ovn-sbctl list controller_event | awk '/_uuid/{print $3}')