]> git.feebdaed.xyz Git - 0xmirror/ovs.git/commitdiff
tests: Ignore no tunnel port error on vswitch stop.
authorIhar Hrachyshka <ihar.hrachyshka@gmail.com>
Mon, 15 Sep 2025 00:50:44 +0000 (20:50 -0400)
committerIlya Maximets <i.maximets@ovn.org>
Fri, 3 Oct 2025 18:26:46 +0000 (20:26 +0200)
The test failure occurs quite consistently (~50% of the runs) when using
a musl static build. It always happens if I add `sync` or `sleep` before
vswitchd shutdown. The warning message can be seen in the
retained vswitchd log (-d) even when the test case passes.

I believe a race condition between vswitchd flushing the log to disc and
the test code reading from the log file explains why the test case
doesn't fail consistently.

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
tests/tunnel.at

index a3b2e23eff538d540245ba34e3e5d76bef072f9e..e1a16138fa290db4245cc50aeda008950028196d 100644 (file)
@@ -129,7 +129,7 @@ AT_CHECK([ovs-appctl dpctl/dump-flows | tail -1], [0], [dnl
 recirc_id(0),tunnel(src=3.3.3.200/255.255.255.0,dst=1.1.1.1,ttl=64,tp_src=1,tp_dst=123),in_port(1),eth(),eth_type(0x0800), packets:0, bytes:0, used:never, actions:2
 ])
 
-OVS_VSWITCHD_STOP
+OVS_VSWITCHD_STOP(["/receive tunnel port not found/d"])
 AT_CLEANUP
 
 AT_SETUP([tunnel - too long nested attributes])