Skip to content

Commit 0bca182

Browse files
committed
CI: workaround CentOS Stream 9 criu issue
Older criu builds fail on CentOS Stream 9 due to changes in glibc's rseq. Skip a test if an older criu version is found. Fixes: #3532 Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent c0d44ea commit 0bca182

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libcontainer/integration/checkpoint_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"os"
77
"os/exec"
88
"path/filepath"
9+
"regexp"
910
"strings"
1011
"testing"
1112

@@ -61,6 +62,12 @@ func testCheckpoint(t *testing.T, userns bool) {
6162
t.Skipf("criu binary not found: %v", err)
6263
}
6364

65+
// Workaround for https://github.com/opencontainers/runc/issues/3532.
66+
out, err := exec.Command("rpm", "-q", "criu").CombinedOutput()
67+
if err == nil && regexp.MustCompile(`^criu-3\.17\.[123]\.el9`).Match(out) {
68+
t.Skip("Test requires criu >= 3.17-4 on CentOS Stream 9.")
69+
}
70+
6471
config := newTemplateConfig(t, &tParam{userns: userns})
6572
stateDir := t.TempDir()
6673

0 commit comments

Comments
 (0)