We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57142f9 commit 49de3d2Copy full SHA for 49de3d2
scripts/ctest-background.sh
@@ -24,15 +24,16 @@ if [ -z "${SAI_LIST_PORT}" ] ; then
24
sleep 1
25
fi
26
else
27
- if [ "${VENDOR}" = "apple" ] ; then
28
- while [ -z "`netstat -an | grep LISTEN | tr -s ' ' | cut -d' ' -f4| grep "\.${SAI_LIST_PORT}\$"`" ] ; do
29
- sleep 0.5
30
- done
31
- else
32
- while [ -z "`netstat -ltn4 | grep LISTEN | tr -s ' ' | grep ":${SAI_LIST_PORT}\ "`" ] ; do
33
34
35
- fi
+ if [ "${VENDOR}" = "apple" ] ; then
+ while [ -z "`lsof -iTCP -sTCP:LISTEN -P -n | grep -- ':${SAI_LIST_PORT}'`" ] ; do
+ sleep 0.5
+ done
+ sleep 2
+ else
+ while [ -z "`netstat -ltn4 | grep LISTEN | tr -s ' ' | grep ":${SAI_LIST_PORT}\ "`" ] ; do
36
+ fi
37
38
39
0 commit comments