projects
/
snapd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bd0f3a
)
tests: create test user for autopkgtests
author
Zygmunt Krynicki
<zygmunt.krynicki@canonical.com>
Tue, 4 Jun 2024 09:10:02 +0000
(11:10 +0200)
committer
Zygmunt Krynicki
<me@zygoon.pl>
Thu, 19 Sep 2024 12:43:40 +0000
(14:43 +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
patch
|
blob
|
history
diff --git
a/tests/lib/prepare-restore.sh
b/tests/lib/prepare-restore.sh
index db64b2c3c3d98a1242075998cedb2c449ca0b633..5015ed7add5793f142778d8d9424de52f94812b6 100755
(executable)
--- 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