Skip to content

Commit 3125814

Browse files
authored
Merge pull request #3282 from kolyshkin/1.0-fix-ci-for-criu-3.16
[1.0] fix ci
2 parents 23c6e4f + aa1d1ca commit 3125814

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

libcontainer/integration/checkpoint_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,12 @@ func testCheckpoint(t *testing.T, userns bool) {
133133
ok(t, err)
134134
defer remove(imagesDir)
135135

136+
relParentDir, err := filepath.Rel(imagesDir, parentDir)
137+
ok(t, err)
136138
checkpointOpts := &libcontainer.CriuOpts{
137139
ImagesDirectory: imagesDir,
138140
WorkDirectory: imagesDir,
139-
ParentImage: "../criu-parent",
141+
ParentImage: relParentDir,
140142
}
141143
dumpLog := filepath.Join(checkpointOpts.WorkDirectory, "dump.log")
142144
restoreLog := filepath.Join(checkpointOpts.WorkDirectory, "restore.log")

tests/integration/dev.bats

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ function teardown() {
3838

3939
update_config ' .linux.resources.devices = [{"allow": false, "access": "rwm"}]
4040
| .linux.devices = [{"path": "/dev/kmsg", "type": "c", "major": 1, "minor": 11}]
41+
| .process.capabilities.bounding += ["CAP_SYSLOG"]
42+
| .process.capabilities.effective += ["CAP_SYSLOG"]
43+
| .process.capabilities.inheritable += ["CAP_SYSLOG"]
44+
| .process.capabilities.permitted += ["CAP_SYSLOG"]
4145
| .process.args |= ["sh"]'
4246

4347
runc run -d --console-socket "$CONSOLE_SOCKET" test_deny
@@ -72,6 +76,10 @@ function teardown() {
7276
update_config ' .linux.resources.devices = [{"allow": false, "access": "rwm"},{"allow": true, "type": "c", "major": 1, "minor": 11, "access": "rw"}]
7377
| .linux.devices = [{"path": "/dev/kmsg", "type": "c", "major": 1, "minor": 11}]
7478
| .process.args |= ["sh"]
79+
| .process.capabilities.bounding += ["CAP_SYSLOG"]
80+
| .process.capabilities.effective += ["CAP_SYSLOG"]
81+
| .process.capabilities.inheritable += ["CAP_SYSLOG"]
82+
| .process.capabilities.permitted += ["CAP_SYSLOG"]
7583
| .hostname = "myhostname"'
7684

7785
runc run -d --console-socket "$CONSOLE_SOCKET" test_allow_char

0 commit comments

Comments
 (0)