diff options
-rwxr-xr-x | testing/do-tests | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/testing/do-tests b/testing/do-tests index 7f7d9147a..59e1634b6 100755 --- a/testing/do-tests +++ b/testing/do-tests @@ -98,6 +98,7 @@ for host in $STRONGSWANHOSTS do ssh $SSHCONF -N root@`eval echo \\\$ipv4_$host` >/dev/null 2>&1 & eval ssh_pid_$host="`echo $!`" + do_on_exit kill `eval echo \\\$ssh_pid_$host` done @@ -786,11 +787,3 @@ echo "or via the link http://$ipv4_winnetou/testresults/$TESTDATE" ENDDATE=`date +%Y%m%d-%H%M` echo echo "Finished : $ENDDATE" - -########################################################################## -# close ssh sessions -# -for host in $STRONGSWANHOSTS -do - kill `eval echo \\\$ssh_pid_$host` -done |