From: Zygmunt Krynicki Date: Tue, 4 Jun 2024 09:10:02 +0000 (+0200) Subject: [PATCH] tests: create test user for autopkgtests X-Git-Tag: archive/raspbian/2.68.3-3+rpi1^2^2^2^2^2^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9017930a2677ed37cd4edc698a7d1645b2f079da;p=snapd.git [PATCH] tests: create test user for autopkgtests The smoke test suite depends on running things as the unprivilege user "test" with the specific UID 12345. Signed-off-by: Zygmunt Krynicki Gbp-Pq: Name 0021-PATCH-tests-create-test-user-for-autopkgtests.patch --- diff --git a/tests/lib/prepare-restore.sh b/tests/lib/prepare-restore.sh index d9bd1f27..dfdd3147 100755 --- a/tests/lib/prepare-restore.sh +++ b/tests/lib/prepare-restore.sh @@ -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