From f98e00cb76c90d63f116a4766125bdd815733cc4 Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Fri, 26 Jan 2024 01:11:46 +0100 Subject: [PATCH] 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 --- packaging/debian-sid/tests/integrationtests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2