2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00

zdtm: make cgroup testcases run non-parallel

cgroup testcases live in the same cgroup root zdtmtst and
zdtmtst.defaultroot controller then create child subgroup for testing. This
can cause problems when cgroup testcases run in parallel. For example,
testcase A dumps the child subgroup of testcase B since it's in the cgroup
root but in the middle of restoring of testcase A, testcase B completes and
cleans up the subgroup directory. This causes error in testcase A restore.
This commit adds excl flag to all cgroup testcases description so that
these don't run parallel.

Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
This commit is contained in:
Bui Quang Minh 2024-07-12 23:30:35 +07:00 committed by Andrei Vagin
parent 4f45572fde
commit b9081ca56b
8 changed files with 8 additions and 8 deletions

View File

@ -1 +1 @@
{'flavor': 'h', 'flags': 'suid', 'opts': '--manage-cgroups'}
{'flavor': 'h', 'flags': 'suid excl', 'opts': '--manage-cgroups'}

View File

@ -1 +1 @@
{'flavor': 'h', 'flags': 'suid', 'opts': '--manage-cgroups'}
{'flavor': 'h', 'flags': 'suid excl', 'opts': '--manage-cgroups'}

View File

@ -1,4 +1,4 @@
{ 'dopts': '--manage-cgroups --cgroup-root name=zdtmtst:/prefix',
'flags': 'suid',
'flags': 'suid excl',
'flavor': 'h',
'ropts': '--manage-cgroups --cgroup-root /newroot --cgroup-root name=zdtmtst:/prefix'}

View File

@ -1 +1 @@
{'flavor': 'h', 'flags': 'suid', 'opts': '--manage-cgroups'}
{'flavor': 'h', 'flags': 'suid excl', 'opts': '--manage-cgroups'}

View File

@ -1,6 +1,6 @@
{
'flavor': 'h',
'flags': 'suid',
'flags': 'suid excl',
# We create the external cgroup yard in working directory during --pre-dump
# hook. We have to go up a few directories to find the yard.
'opts': '--manage-cgroups --cgroup-yard ../../../../../../external_yard'

View File

@ -1,4 +1,4 @@
{ 'feature': 'cgroupns',
'flags': 'suid',
'flags': 'suid excl',
'flavor': 'h',
'opts': '--manage-cgroups'}

View File

@ -1 +1 @@
{'flavor': 'h ns', 'flags': 'suid', 'opts': '--manage-cgroups=full'}
{'flavor': 'h ns', 'flags': 'suid excl', 'opts': '--manage-cgroups=full'}

View File

@ -1 +1 @@
{'flavor': 'h ns', 'flags': 'suid', 'opts': '--manage-cgroups=full'}
{'flavor': 'h ns', 'flags': 'suid excl', 'opts': '--manage-cgroups=full'}