strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
16cd6f6
)
Use exit trap to kill open ssh sessions
author
Reto Buerki
<reet@codelabs.ch>
Fri, 14 Dec 2012 08:06:55 +0000
(09:06 +0100)
committer
Tobias Brunner
<tobias@strongswan.org>
Thu, 17 Jan 2013 15:54:57 +0000
(16:54 +0100)
testing/do-tests
patch
|
blob
|
history
diff --git
a/testing/do-tests
b/testing/do-tests
index
7f7d914
..
59e1634
100755
(executable)
--- 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
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
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"
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