summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts')
-rw-r--r--tests/scripts/common.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh
index 518d8416bc..485197a291 100644
--- a/tests/scripts/common.sh
+++ b/tests/scripts/common.sh
@@ -26,14 +26,14 @@ export TZ="UTC"
# command in the caller's PFCMD, or exit, indicating an unsupported
# test. Prefer ss from iproute2 over the older netstat.
have_port_finder() {
- for file in $(which ss) /*bin/ss /usr/*bin/ss /usr/local/*bin/ss;do
+ for file in $(which ss 2> /dev/null) /*bin/ss /usr/*bin/ss /usr/local/*bin/ss;do
if test -x "$file";then
PFCMD="$file";return 0
fi
done
if test -z "$PFCMD";then
- for file in $(which netstat) /bin/netstat /usr/bin/netstat /usr/local/bin/netstat;do
+ for file in $(which netstat 2> /dev/null) /bin/netstat /usr/bin/netstat /usr/local/bin/netstat;do
if test -x "$file";then
PFCMD="$file";return 0
fi