Skip to content

Commit

Permalink
Merge pull request #3778 from kolyshkin/skip-flaky-ce7
Browse files Browse the repository at this point in the history
libct/cg/dev: skip flaky test of CentOS 7
  • Loading branch information
kolyshkin authored Mar 27, 2023
2 parents da5047c + a7a836e commit 3e3db28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libcontainer/cgroups/devices/systemd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ func testSkipDevices(t *testing.T, skipDevices bool, expected []string) {
if os.Geteuid() != 0 {
t.Skip("Test requires root.")
}
// https://github.com/opencontainers/runc/issues/3743
centosVer, _ := exec.Command("rpm", "-q", "--qf", "%{version}", "centos-release").CombinedOutput()
if string(centosVer) == "7" {
t.Skip("Flaky on CentOS 7")
}

podConfig := &configs.Cgroup{
Parent: "system.slice",
Expand Down

0 comments on commit 3e3db28

Please sign in to comment.