Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libct/int: skip TestUsernsCheckpoint on CentOS 7 #4303

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions libcontainer/integration/checkpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"strings"
"testing"

"github.com/opencontainers/runc/internal/testutil"
"github.com/opencontainers/runc/libcontainer"
"golang.org/x/sys/unix"
)
Expand All @@ -18,6 +19,7 @@ func criuFeature(feature string) bool {
}

func TestUsernsCheckpoint(t *testing.T) {
testutil.SkipOnCentOS(t, "Flaky (see #4273)", 7)
testCheckpoint(t, true)
}

Expand Down Expand Up @@ -46,6 +48,13 @@ func testCheckpoint(t *testing.T, userns bool) {

config := newTemplateConfig(t, &tParam{userns: userns})
stateDir := t.TempDir()
defer func() {
out, err := exec.Command("fuser", "-vm", stateDir+"/dev").CombinedOutput()
t.Logf("%s", out)
if err != nil {
t.Logf("exec: %v", err)
}
}()

container, err := libcontainer.Create(stateDir, "test", config)
ok(t, err)
Expand Down
Loading