aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scripts/function.sh
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-08-03 12:54:09 +0200
committerTobias Brunner <tobias@strongswan.org>2015-08-03 12:54:09 +0200
commit50dd7de226a753fc94a3d312a8d8398f5ecf57f9 (patch)
tree6975ad84ea2293ac94579fae961c0b678103a658 /testing/scripts/function.sh
parente0d3a2a8737ba2ee5e74f79d1054344391f9a644 (diff)
downloadstrongswan-50dd7de226a753fc94a3d312a8d8398f5ecf57f9.tar.bz2
strongswan-50dd7de226a753fc94a3d312a8d8398f5ecf57f9.tar.xz
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.
Diffstat (limited to 'testing/scripts/function.sh')
-rwxr-xr-xtesting/scripts/function.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/scripts/function.sh b/testing/scripts/function.sh
index 2dd465c85..bab2f7422 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
}