projects
/
snapd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8ced93
)
[PATCH] 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>
Mon, 17 Jun 2024 14:21:30 +0000
(16:21 +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 d9bd1f27a35dd0feb603ea81ea5341aa48f3c625..dfdd3147d68118dae9cc6edda79a2e3dfdf3487b 100755
(executable)
--- 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