testing: Do not attempt to start the test environment if hosts are still running

This commit is contained in:
Tobias Brunner
2015-07-15 16:53:37 +02:00
parent 390ae7a2c2
commit 170e8d141c
+1
View File
@@ -14,6 +14,7 @@ MCASTBRS="test-br0 test-br1"
echo "Starting test environment"
[ `id -u` -eq 0 ] || die "You must be root to run $0"
running_any $STRONGSWANHOSTS && die "Please stop test environment before running $0"
check_commands kvm virsh