tests: fixed evaltest of swanctl/rw-cert scenario
[strongswan.git] / testing / stop-testing
index 5695d62..704ae66 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/bash
 
-. $PWD/scripts/function.sh
+DIR=$(dirname `readlink -f $0`)
+. $DIR/testing.conf
+. $DIR/scripts/function.sh
 
 echo "Stopping test environment"
 
@@ -21,7 +23,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