From: Zygmunt Krynicki Date: Fri, 26 Jan 2024 00:11:46 +0000 (+0100) Subject: [PATCH 11/18] packaging,spread.yaml: use needs-sudo to setup sudo X-Git-Tag: archive/raspbian/2.68.3-3+rpi1^2^2^2^2^2^2^2^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ac13d1c317779183bbbb25b8310bbe857808356b;p=snapd.git [PATCH 11/18] packaging,spread.yaml: use needs-sudo to setup sudo Sudo access is managed by the "needs-sudo" flag. We can drop our custom logic and associated manipulation. This also ensures the testbed is correctly selected, and incompatible systems are rejected. Signed-off-by: Zygmunt Krynicki Gbp-Pq: Name 0012-PATCH-11-18-packaging-spread.yaml-use-needs-sudo-to-.patch --- diff --git a/packaging/debian-sid/tests/control b/packaging/debian-sid/tests/control index 9b2b367a..724473db 100644 --- a/packaging/debian-sid/tests/control +++ b/packaging/debian-sid/tests/control @@ -1,5 +1,5 @@ Tests: integrationtests -Restrictions: allow-stderr, rw-build-tree, needs-root, breaks-testbed, isolation-machine +Restrictions: allow-stderr, rw-build-tree, needs-root, breaks-testbed, isolation-machine, needs-sudo Depends: bzr, ca-certificates, git, diff --git a/spread.yaml b/spread.yaml index 21726413..849f9c40 100644 --- a/spread.yaml +++ b/spread.yaml @@ -403,7 +403,6 @@ backends: FATAL "adhoc only works inside autopkgtest" exit 1 fi - echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/99-spread-users ADDRESS localhost:22 discard: | echo "Discarding ad-hoc $SPREAD_SYSTEM"