diff options
Diffstat (limited to 'tests/basic')
-rwxr-xr-x | tests/basic | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/basic b/tests/basic index 30c6d17..cb3730d 100755 --- a/tests/basic +++ b/tests/basic @@ -27,10 +27,12 @@ cleanup() { read -p "press enter to cleanup and remove tmp:" echo "### stop sshd..." - kill "$SSHD_PID" + kill %1 echo "### removing temp dir..." rm -rf "$TEMPDIR" + + wait } ## setup trap @@ -120,8 +122,6 @@ EOF # launch test sshd with the new host key. echo "### starting sshd..." socat EXEC:"/usr/sbin/sshd -f ${SSHD_CONFIG} -i -d -d -d -D -e" "UNIX-LISTEN:${SOCKET}" 2> "$TEMPDIR"/sshd.log & -export SSHD_PID=$! - ### TESTUSER TESTS |