[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>
Wed, 5 Jun 2024 08:16:06 +0000 (10:16 +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 9044e7ea281e8bd2e4046946f1230be904347ba4..850037ac5cf5005bbedffe53244ca3f960feb921 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