Package: remrun
Version: 0.2.1-1
Severity: minor
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch

Hi Peter,

As of the latest upload of openssh in Ubuntu, the remrun autopkgtest is
failing on armhf.  This is because:

 - Ubuntu uses lxd runners for autopkgtests on armhf (only)
 - the latest upload of openssh uses socket-based activation, so sshd is not
   started on installation and /run/sshd is not created
 - the remrun autopkgtests allow for this by creating /run/sshd on demand,
   but the autopkgtests are not declared as "Restrictions: needs-root",
   therefore do not have access to create a directory underneath /run.

The attached patch adjusts debian/tests/control to make the autopkgtests
more portable.

Thanks for considering,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru remrun-0.2.1/debian/tests/control remrun-0.2.1/debian/tests/control
--- remrun-0.2.1/debian/tests/control   2022-07-13 15:18:37.000000000 -0700
+++ remrun-0.2.1/debian/tests/control   2022-08-25 16:05:08.000000000 -0700
@@ -1,9 +1,9 @@
 Test-Command: set -e; for py in $(py3versions -i); do printf '\n\n=== %s\n\n' 
"$py"; env PYTHONPATH="$(pwd)/tests/python" "$py" -B -u -m run_sshd_test -v 
/usr/bin/remrun; done
 Depends: @, openssh-client, openssh-server, python3-all, python3-cfg-diag, 
python3-utf8-locale
 Features: test-name=upstream-sshd-simple
-Restrictions: allow-stderr
+Restrictions: allow-stderr, needs-root
 
 Test-Command: set -e; for py in $(py3versions -i); do printf '\n\n=== %s\n\n' 
"$py"; env PYTHONPATH="$(pwd)/tests/python" "$py" -B -u -m run_sshd_test -v -t 
tests/run-test.sh /usr/bin/remrun; done
 Depends: @, openssh-client, openssh-server, python3-all, python3-cfg-diag, 
python3-utf8-locale
 Features: test-name=upstream-sshd-suite
-Restrictions: allow-stderr
+Restrictions: allow-stderr, needs-root

Reply via email to