diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2013-04-05 09:06:26 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2013-04-05 09:06:26 +0000 |
| commit | 697291b66c481c617cf9875497e2189bc4a4b096 (patch) | |
| tree | 5c98c370bedd1d0b4cc456b94e1f7a8ceb080bff /testdata/common.sh | |
| parent | afb79913ce00d885b8b43f7478e1e054edadb567 (diff) | |
Notes
Diffstat (limited to 'testdata/common.sh')
| -rwxr-xr-x | testdata/common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testdata/common.sh b/testdata/common.sh index 8e3b2293ec67..2a8ec7bb34bf 100755 --- a/testdata/common.sh +++ b/testdata/common.sh @@ -116,7 +116,7 @@ get_random_port () { # depending on uname try to check for collisions in port numbers case "`uname`" in linux|Linux) - plist=`netstat -n -A ip -A ip6 -a | sed -e 's/^.*:\([0-9]*\) .*$/\1/'` + plist=`netstat -n -A ip -A ip6 -a 2>/dev/null | sed -e 's/^.*:\([0-9]*\) .*$/\1/'` ;; FreeBSD|freebsd|NetBSD|netbsd|OpenBSD|openbsd) plist=`netstat -n -a | grep "^[ut][dc]p[46] " | sed -e 's/^.*\.\([0-9]*\) .*$/\1/'` |
