mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
ci(checkpoint): workaround to avoid mutate cgroupv2 mount options
add --manage-cgroups-mode ignore to avoid pollute cgroupv2 mount options during unittest and intergration test https://github.com/checkpoint-restore/criu/issues/3029 Signed-off-by: sean <xujihui1985@gmail.com>
This commit is contained in:
@@ -83,9 +83,10 @@ func testCheckpoint(t *testing.T, userns bool) {
|
||||
parentImage = "../criu-parent"
|
||||
parentDir := filepath.Join(tmp, "criu-parent")
|
||||
preDumpOpts := &libcontainer.CriuOpts{
|
||||
ImagesDirectory: parentDir,
|
||||
WorkDirectory: parentDir,
|
||||
PreDump: true,
|
||||
ImagesDirectory: parentDir,
|
||||
WorkDirectory: parentDir,
|
||||
PreDump: true,
|
||||
ManageCgroupsMode: "ignore",
|
||||
}
|
||||
|
||||
if err := container.Checkpoint(preDumpOpts); err != nil {
|
||||
@@ -103,9 +104,10 @@ func testCheckpoint(t *testing.T, userns bool) {
|
||||
imagesDir := filepath.Join(tmp, "criu")
|
||||
|
||||
checkpointOpts := &libcontainer.CriuOpts{
|
||||
ImagesDirectory: imagesDir,
|
||||
WorkDirectory: imagesDir,
|
||||
ParentImage: parentImage,
|
||||
ImagesDirectory: imagesDir,
|
||||
WorkDirectory: imagesDir,
|
||||
ParentImage: parentImage,
|
||||
ManageCgroupsMode: "ignore",
|
||||
}
|
||||
|
||||
if err := container.Checkpoint(checkpointOpts); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user