| 1234567891011121314151617181920212223242526272829303132333435363738 | #!/bin/bashDIR=$(dirname `readlink -f $0`). $DIR/testing.conf. $DIR/scripts/function.shecho "Stopping test environment"NETWORKS="vnet1 vnet2 vnet3"KNLTARGET=/var/run/kvm-swan-kernelHOSTFSTARGET=/var/run/kvm-swan-hostfsTESTRESULTSTARGET=/var/run/kvm-swan-testresults[ `id -u` -eq 0 ] || die "You must be root to run $0"check_commands virshfor net in $NETWORKSdo	log_action "Network $net"	execute "virsh net-destroy $net"donefor host in $STRONGSWANHOSTSdo	log_action "Guest $host"	execute "virsh shutdown $host"	rm -f $VIRTIMGSTORE/$host.$IMGEXTdonelog_action "Removing kernel $KERNEL"execute "rm $KNLTARGET"log_action "Removing link to hostfs"execute "rm $HOSTFSTARGET"log_action "Removing link to testresults"execute "rm $TESTRESULTSTARGET"
 |