]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: create /run/sshd in TEST-74-AUX-UTILS
authorLuca Boccassi <bluca@debian.org>
Sat, 13 Jan 2024 12:12:25 +0000 (12:12 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 15 Jan 2024 01:28:05 +0000 (10:28 +0900)
12264s [ 4819.948632] sshd[1365]: fatal: Missing privilege separation directory: /run/sshd
12264s [ 4819.952120] testsuite-74.sh[1362]: kex_exchange_identification: read: Connection reset by peer
12264s [ 4819.952120] testsuite-74.sh[1362]: Connection reset by /run/ssh-unix-local/socket port 0

https://autopkgtest.ubuntu.com/results/autopkgtest-jammy-upstream-systemd-ci-systemd-ci/jammy/amd64/s/systemd-upstream/20240113_093341_50fc7@/log.gz

We copy binaries manually so some setups are missing, create the directory
as needed

test/units/testsuite-74.ssh.sh

index bf87a9bd3a62a226fc9c852c2818002890c10b10..3372ec0b068c813acf1cb769393f225b042224ba 100755 (executable)
@@ -24,6 +24,8 @@ if [[ -v ASAN_OPTIONS ]] ; then
 fi
 
 ROOTID=$(mktemp -u)
+# Needed on Ubuntu/Debian as we copy binaries manually
+mkdir -p /run/sshd
 
 removesshid() {
     rm -f "$ROOTID" "$ROOTID".pub