From: Zygmunt Krynicki Date: Tue, 4 Jun 2024 09:10:02 +0000 (+0200) Subject: tests: create test user for autopkgtests X-Git-Tag: archive/raspbian/2.68.3-3+rpi1^2^2^2^2^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=43b04ad292b3bfe2e5a932c3b409fa2fd08348b7;p=snapd.git 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 db64b2c3..5015ed7a 100755 --- a/tests/lib/prepare-restore.sh +++ b/tests/lib/prepare-restore.sh @@ -269,6 +269,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