summaryrefslogtreecommitdiff
path: root/test/e2e/common_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-08-18 14:41:15 -0400
committerGitHub <noreply@github.com>2021-08-18 14:41:15 -0400
commit4ec227079011faef53e22b868d475a831b1f9e89 (patch)
treec284fb692d70cb9e490b150814ad0e1a91bd595a /test/e2e/common_test.go
parenta3d8b48fd56a722642f7cbcad52b2fa88f12b656 (diff)
parent9dd088e555870c6bf149f9d83a5095880580a56a (diff)
downloadpodman-4ec227079011faef53e22b868d475a831b1f9e89.tar.gz
podman-4ec227079011faef53e22b868d475a831b1f9e89.tar.bz2
podman-4ec227079011faef53e22b868d475a831b1f9e89.zip
Merge pull request #10829 from cevich/update_images
Update images
Diffstat (limited to 'test/e2e/common_test.go')
-rw-r--r--test/e2e/common_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go
index 2e48e1763..d03a2741b 100644
--- a/test/e2e/common_test.go
+++ b/test/e2e/common_test.go
@@ -645,9 +645,13 @@ func isRootless() bool {
return os.Geteuid() != 0
}
+func isCgroupsV1() bool {
+ return !CGROUPSV2
+}
+
func SkipIfCgroupV1(reason string) {
checkReason(reason)
- if !CGROUPSV2 {
+ if isCgroupsV1() {
Skip(reason)
}
}