[PATCH] tests: create test user for autopkgtests
authorZygmunt Krynicki <zygmunt.krynicki@canonical.com>
Tue, 4 Jun 2024 09:10:02 +0000 (11:10 +0200)
committerZygmunt Krynicki <me@zygoon.pl>
Fri, 19 Jul 2024 05:15:23 +0000 (07:15 +0200)
The smoke test suite depends on running things as the unprivilege
user "test" with the specific UID 12345.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0021-PATCH-tests-create-test-user-for-autopkgtests.patch

tests/lib/prepare-restore.sh

index d9bd1f27a35dd0feb603ea81ea5341aa48f3c625..dfdd3147d68118dae9cc6edda79a2e3dfdf3487b 100755 (executable)
@@ -265,6 +265,7 @@ prepare_project() {
     # no need to modify anything further for autopkgtest
     # we want to run as pristine as possible
     if [ "$SPREAD_BACKEND" = autopkgtest ]; then
+        create_test_user
         exit 0
     fi