From ad7188456f1622e7fd9b9e344d01133c152c3fd8 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 21 Jun 2023 09:05:21 +0000 Subject: [PATCH] test_sshd.test: fixup to distcheck failure Fixes: ``` ERROR: test_sshd.test - missing test plan ERROR: test_sshd.test - exited with status 1 ``` Ref: https://github.com/libssh2/libssh2/actions/runs/5322354271/jobs/9638694218#step:10:532 Caused by trying to create the log file in a read-only directory. Follow-up to 299c2040625830d06ad757d687807a166b57d6de Closes #1099 --- tests/test_sshd.test | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_sshd.test b/tests/test_sshd.test index 739f97a7..b6b92848 100755 --- a/tests/test_sshd.test +++ b/tests/test_sshd.test @@ -60,10 +60,10 @@ echo "# sshd executable: '${SSHD}' (${ver})" [ -z "${PUBKEY:-}" ] && export PUBKEY="${d}/key_rsa.pub" cakeys="${d}/openssh_server/ca_user_keys.pub" -readonly logfsrv="${d}/sshd.log" -readonly logfcli="${d}/ssh.log" +readonly logfsrv="$(mktemp)" +readonly logfcli="$(mktemp)" -rm -f "${logfsrv}" "${logfcli}" +echo "# sshd log: '${logfsrv}'" SSHD_FLAGS="${SSHD_FLAGS:-}" if [ -n "${DEBUG:-}" ]; then @@ -98,6 +98,7 @@ trap 'kill "${sshdpid}"; echo "# signal killing sshd"; exit 1;' EXIT SSH="$(command -v "${SSH:-ssh}" || true)" if [ -n "${SSH}" ]; then echo "# ssh executable: '${SSH}' ($("${SSH}" -V 2>&1 || true))" + echo "# ssh log: '${logfcli}'" chmod go-rwx "${PRIVKEY}" if [[ "${uname}" = *'_NT'* ]]; then export MSYS2_ARG_CONV_EXCL='/reset'