From: Tobias Brunner Date: Mon, 3 Aug 2015 10:54:09 +0000 (+0200) Subject: testing: Suppress errors when checking for running hosts X-Git-Tag: 5.3.3dr4~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50dd7de226a753fc94a3d312a8d8398f5ecf57f9;p=thirdparty%2Fstrongswan.git testing: Suppress errors when checking for running hosts If libvirt is not running virsh can't connect to it and will complain that the socket does not exist. --- diff --git a/testing/scripts/function.sh b/testing/scripts/function.sh index 2dd465c859..bab2f7422f 100755 --- a/testing/scripts/function.sh +++ b/testing/scripts/function.sh @@ -163,7 +163,7 @@ running_any() command -v virsh >/dev/null || return 1 for host in $* do - virsh list --name | grep "^$host$" >/dev/null && return 0 + virsh list --name 2>/dev/null | grep "^$host$" >/dev/null && return 0 done return 1 }