]> git.ipfire.org Git - thirdparty/strongswan.git/blobdiff - testing/stop-testing
kernel-netlink: Add helper functions for nested attributes
[thirdparty/strongswan.git] / testing / stop-testing
index 013637acaf12ea10c90fc05d60586c2710a931bd..8abf5f223936558197cd143b58ac02a4d71d0970 100755 (executable)
@@ -9,6 +9,7 @@ echo "Stopping test environment"
 NETWORKS="vnet1 vnet2 vnet3"
 KNLTARGET=/var/run/kvm-swan-kernel
 HOSTFSTARGET=/var/run/kvm-swan-hostfs
+TESTRESULTSTARGET=/var/run/kvm-swan-testresults
 
 [ `id -u` -eq 0 ] || die "You must be root to run $0"
 
@@ -23,7 +24,7 @@ done
 for host in $STRONGSWANHOSTS
 do
        log_action "Guest $host"
-       execute "virsh destroy $host"
+       execute "virsh shutdown $host"
        rm -f $VIRTIMGSTORE/$host.$IMGEXT
 done
 
@@ -32,3 +33,6 @@ execute "rm $KNLTARGET"
 
 log_action "Removing link to hostfs"
 execute "rm $HOSTFSTARGET"
+
+log_action "Removing link to testresults"
+execute "rm $TESTRESULTSTARGET"