diff mbox series

[ovs-dev,v2,2/4] fmt_pkt: use -S check to wait for scapy sock file

Message ID 20231128174357.1233186-3-ihrachys@redhat.com
State Accepted
Headers show
Series misc fmt_pkt improvements | expand

Checks

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

Commit Message

Ihar Hrachyshka Nov. 28, 2023, 5:43 p.m. UTC
While either check works, it's better to use a more explicit check.

Signed-off-by: Ihar Hrachyshka <ihrachys@redhat.com>
Acked-by: Mark Michelson <mmichels@redhat.com>
---
 tests/ovn-macros.at | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/ovn-macros.at b/tests/ovn-macros.at
index 3191bb6ad..0b15bcc80 100644
--- a/tests/ovn-macros.at
+++ b/tests/ovn-macros.at
@@ -873,7 +873,7 @@  ovn_trace_client() {
 #
 fmt_pkt() {
     ctlfile=$ovs_base/scapy.ctl
-    if [[ ! -e $ctlfile ]]; then
+    if [[ ! -S $ctlfile ]]; then
         start_scapy_server
     fi
     ovs-appctl -t $ctlfile payload "$1"