testing: Ensure no guest is running when modifying images
Sometimes guests are not stopped properly. If images are then modified they will be corrupted.
This commit is contained in:
@@ -7,6 +7,7 @@ DIR=$(dirname `readlink -f $0`)
|
||||
. $DIR/function.sh
|
||||
|
||||
[ `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 debootstrap mkfs.ext3 partprobe qemu-img qemu-nbd sfdisk
|
||||
|
||||
|
||||
Reference in New Issue
Block a user