diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index 28760ff01..63befe252 100644 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -370,7 +370,7 @@ function waitforlisten() { # On FreeBSD netstat output 'State' column is missing for Unix sockets. # To workaround this issue just try to use provided address. # XXX: This solution could be used for other distros. - if $rootdir/scripts/rpc.py -t 1 -s "$rpc_addr" get_rpc_methods 1>&2 2>/dev/null; then + if $rootdir/scripts/rpc.py -t 1 -s "$rpc_addr" get_rpc_methods &>/dev/null; then break fi fi