Skip to content

Commit

Permalink
Merge pull request #3807 from kolyshkin/1.1-skip-flaky-ce7
Browse files Browse the repository at this point in the history
[1.1] libct/cg/dev: skip flaky test of CentOS 7
  • Loading branch information
AkihiroSuda authored Apr 6, 2023
2 parents 55b2dbf + f6562f1 commit c0647d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libcontainer/cgroups/systemd/systemd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,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 c0647d3

Please sign in to comment.