From: Zygmunt Krynicki Date: Fri, 26 Jan 2024 00:11:46 +0000 (+0100) Subject: [PATCH 14/18] packaging: do not hard-code the "ubuntu" username/password X-Git-Tag: archive/raspbian/2.68.3-3+rpi1^2^2^2^2^2^2^2^2^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4f57350bf0e3a84f6e39b661b8b265ab921748fa;p=snapd.git [PATCH 14/18] packaging: do not hard-code the "ubuntu" username/password Spread needs to login to an account with a non-empty password. Set the password of the autopkgtest user account to the same value as the account name. Signed-off-by: Zygmunt Krynicki Gbp-Pq: Name 0015-PATCH-14-18-packaging-do-not-hard-code-the-ubuntu-us.patch --- diff --git a/packaging/debian-sid/tests/integrationtests b/packaging/debian-sid/tests/integrationtests index 2267e715..eee0d334 100644 --- a/packaging/debian-sid/tests/integrationtests +++ b/packaging/debian-sid/tests/integrationtests @@ -24,7 +24,7 @@ printf '%s\n' "-950" > /proc/$$/oom_score_adj cat /proc/meminfo # ensure we can do a connect to localhost -echo ubuntu:ubuntu|chpasswd +echo "${AUTOPKGTEST_NORMAL_USER}":"${AUTOPKGTEST_NORMAL_USER}" | chpasswd sed -i 's/\(PermitRootLogin\|PasswordAuthentication\)\>.*/\1 yes/' /etc/ssh/sshd_config systemctl reload ssh.service