Jerry Zhao 3cb7945822 regtest commissioning
installation of os_only cento6.5 is successful
going to test Ubuntu 14.04

Change-Id: Ib08cf2860ae28a219f259873fcc015442ff6fc67
2015-04-09 21:34:38 +08:00

21 lines
623 B
Bash

function tear_down_machines() {
virtmachines=$(virsh list --name |grep pxe)
for virtmachine in $virtmachines; do
echo "destroy $virtmachine"
virsh destroy $virtmachine
if [[ "$?" != "0" ]]; then
echo "destroy instance $virtmachine failed"
exit 1
fi
done
virtmachines=$(virsh list --all --name |grep pxe)
for virtmachine in $virtmachines; do
echo "undefine $virtmachine"
virsh undefine $virtmachine
if [[ "$?" != "0" ]]; then
echo "undefine instance $virtmachine failed"
exit 1
fi
done
}