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, 6 Sep 2024 11:27:51 +0000 (13:27 +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 db64b2c3c3d98a1242075998cedb2c449ca0b633..5015ed7add5793f142778d8d9424de52f94812b6 100755 (executable)
@@ -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