Skip to content

Commit

Permalink
fmt_pkt: use -S check to wait for scapy sock file
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Mark Michelson <mmichels@redhat.com>
  • Loading branch information
booxter authored and putnopvut committed Dec 4, 2023
1 parent 74e7ba1 commit cd3dd36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ovn-macros.at
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cd3dd36

Please sign in to comment.