testing: Do not attempt to start the test environment if hosts are still running
This commit is contained in:
@@ -14,6 +14,7 @@ MCASTBRS="test-br0 test-br1"
|
|||||||
echo "Starting test environment"
|
echo "Starting test environment"
|
||||||
|
|
||||||
[ `id -u` -eq 0 ] || die "You must be root to run $0"
|
[ `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
|
check_commands kvm virsh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user