From 50dd7de226a753fc94a3d312a8d8398f5ecf57f9 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 3 Aug 2015 12:54:09 +0200 Subject: 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. --- testing/scripts/function.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing/scripts/function.sh') 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 } -- cgit v1.2.3