Commit eee66c03 by Edward Thomson Committed by Patrick Steinhardt

ci: some additional debugging

(cherry picked from commit 230eeda8)
parent 1ef99442
...@@ -18,15 +18,21 @@ cleanup() { ...@@ -18,15 +18,21 @@ cleanup() {
echo "Cleaning up..." echo "Cleaning up..."
if [ ! -z "$GITDAEMON_DIR" -a -f "${GITDAEMON_DIR}/pid" ]; then if [ ! -z "$GITDAEMON_DIR" -a -f "${GITDAEMON_DIR}/pid" ]; then
echo "Stopping git daemon..."
kill $(cat "${GITDAEMON_DIR}/pid") kill $(cat "${GITDAEMON_DIR}/pid")
fi fi
if [ ! -z "$SSHD_DIR" -a -f "${SSHD_DIR}/pid" ]; then if [ ! -z "$SSHD_DIR" -a -f "${SSHD_DIR}/pid" ]; then
echo "Stopping SSH..."
kill $(cat "${SSHD_DIR}/pid") kill $(cat "${SSHD_DIR}/pid")
fi fi
echo "Done."
} }
die() { die() {
echo "Test exited with code: $1"
cleanup cleanup
exit $1 exit $1
} }
...@@ -179,4 +185,6 @@ if [ -z "$SKIP_SSH_TESTS" ]; then ...@@ -179,4 +185,6 @@ if [ -z "$SKIP_SSH_TESTS" ]; then
unset GITTEST_REMOTE_SSH_FINGERPRINT unset GITTEST_REMOTE_SSH_FINGERPRINT
fi fi
echo "Success."
cleanup cleanup
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment