1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-18 15:20:56 +03:00

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 299c204062
Closes #1099
This commit is contained in:
Viktor Szakats
2023-06-21 09:05:21 +00:00
parent 299c204062
commit ad7188456f

View File

@@ -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'