summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2017-03-12 15:05:41 +0200
committerAlon Bar-Lev <alon.barlev@gmail.com>2017-03-12 17:39:05 +0200
commitca4c2147e1a9cb1013551224dc84a736d4b0b590 (patch)
tree946f78c1a487e499ba0048c575d5a117ac85f5e4
parent7acbc4b641faff0818320f3276f58f6f19f287d1 (diff)
downloadgnutls-ca4c2147e1a9cb1013551224dc84a736d4b0b590.tar.gz
tests: scripts: suppress which errors
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
-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