summaryrefslogtreecommitdiff
path: root/tests/scripts
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 15:05:41 +0200
commit2144199c45b143e35aff238cfa7de38088db6431 (patch)
tree8865b95c258562d1fc951c80da0974b58ab0477d /tests/scripts
parentf472b1656d4c06c35bdef2d231496e8af0ffe699 (diff)
downloadgnutls-2144199c45b143e35aff238cfa7de38088db6431.tar.gz
tests: scripts: suppress which errors
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
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