summaryrefslogtreecommitdiffstats
path: root/test/units/testsuite-19.sh
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-04-29 09:44:03 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-04-29 16:59:08 +0200
commit992e06df085e3a7a881d25d6f83b9e98efbbb7ca (patch)
tree3e624ba3c314df6c6201637f2d4682527c4f004f /test/units/testsuite-19.sh
parenttest: match all messages with the FILE field (diff)
downloadsystemd-992e06df085e3a7a881d25d6f83b9e98efbbb7ca.tar.xz
systemd-992e06df085e3a7a881d25d6f83b9e98efbbb7ca.zip
test: make sure the test units have a `test-` prefix
So when collecting coverage the test-.service dropin works as expected. Follow-up to 969f5f3cea.
Diffstat (limited to '')
-rwxr-xr-xtest/units/testsuite-19.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/units/testsuite-19.sh b/test/units/testsuite-19.sh
index 20759eaa1f..93280993f1 100755
--- a/test/units/testsuite-19.sh
+++ b/test/units/testsuite-19.sh
@@ -46,7 +46,7 @@ if grep -q cgroup2 /proc/filesystems ; then
test_scope_unpriv_delegation
# Verify that DelegateSubgroup= affects ownership correctly
- U="testsubgroup-$RANDOM.service"
+ U="test-subgroup-$RANDOM.service"
systemd-run --wait --unit="$U" -p "DynamicUser=1" -p "Delegate=pids" -p "DelegateSubgroup=foo" \
test -w "/sys/fs/cgroup/system.slice/$U" -a \
-w "/sys/fs/cgroup/system.slice/$U/foo"
@@ -54,13 +54,13 @@ if grep -q cgroup2 /proc/filesystems ; then
# Check that for the subgroup also attributes that aren't covered by
# regular (i.e. main cgroup) delegation ownership rules are delegated properly
if test -f /sys/fs/cgroup/cgroup.max.depth ; then
- U="testsubgroup-$RANDOM.service"
+ U="test-subgroup-$RANDOM.service"
systemd-run --wait --unit="$U" -p "DynamicUser=1" -p "Delegate=pids" -p "DelegateSubgroup=zzz" \
test -w "/sys/fs/cgroup/system.slice/$U/zzz/cgroup.max.depth"
fi
# Check that the invoked process itsel is also in the subgroup
- U="testsubgroup-$RANDOM.service"
+ U="test-subgroup-$RANDOM.service"
systemd-run --wait --unit="$U" -p "DynamicUser=1" -p "Delegate=pids" -p "DelegateSubgroup=bar" \
grep -q -x -F "0::/system.slice/$U/bar" /proc/self/cgroup
else