summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-10-26 01:12:05 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-10-26 01:12:05 -0400
commit5e6fa0164c6003d09434e8e1b806a3d9ab8a2fcf (patch)
tree0f2627884612ef35b945665f8f80f57215c66ac7 /tests
parentf0fc313acc49c2f24cfc4d7e0a49fb7c1e3755f7 (diff)
testing: using jobspec instead of SSHD_PID
Diffstat (limited to 'tests')
-rwxr-xr-xtests/basic6
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