projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
161286e
)
test: Fail cgroup delegation test when user cannot be created
author
Michal Koutný
<mkoutny@suse.com>
Fri, 26 Jul 2024 08:44:10 +0000
(10:44 +0200)
committer
Luca Boccassi
<bluca@debian.org>
Thu, 15 Aug 2024 12:08:37 +0000
(13:08 +0100)
It means: a) user cannot be created, something's wrong in the
test environment -> fail the test; b) user already exists, we shall not
continue and delete (foreign) user.
(cherry picked from commit
3e6e3e6d40db0a9e9741ef4942218193fca7b28e
)
test/units/TEST-19-CGROUP.delegate.sh
patch
|
blob
|
history
diff --git
a/test/units/TEST-19-CGROUP.delegate.sh
b/test/units/TEST-19-CGROUP.delegate.sh
index 52d47fc87924daf94215974baf573beeab3b16ba..7f3a7059e2cd61c77b9ee133e362bd0498b8bf4d 100755
(executable)
--- a/
test/units/TEST-19-CGROUP.delegate.sh
+++ b/
test/units/TEST-19-CGROUP.delegate.sh
@@
-74,7
+74,7
@@
testcase_attributes() {
testcase_scope_unpriv_delegation() {
# Check that unprivileged delegation works for scopes
- useradd test
||:
+ useradd test
trap "userdel -r test" RETURN
systemd-run --uid=test \
--property="User=test" \