Skip to content

Commit

Permalink
tests: create test user for autopkgtests
Browse files Browse the repository at this point in the history
The smoke test suite depends on running things as the unprivilege
user "test" with the specific UID 12345.

Signed-off-by: Zygmunt Krynicki <[email protected]>
  • Loading branch information
zyga committed Sep 20, 2024
1 parent 9a8c0b6 commit 95a774f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/lib/prepare-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,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

Expand Down

0 comments on commit 95a774f

Please sign in to comment.