summaryrefslogtreecommitdiff
path: root/test/e2e/common_test.go
diff options
context:
space:
mode:
authorJordan Christiansen <xordspar0@gmail.com>2020-09-28 13:57:58 -0500
committerJordan Christiansen <xordspar0@gmail.com>2020-10-12 08:38:37 -0500
commita413d4d77f1701a62b9bb2e7beb00145544e2306 (patch)
treefd29521eed106a03104eeeaecc6ce5fad040b617 /test/e2e/common_test.go
parentcec240375d6dceb09c705d6d55e67aeff037327f (diff)
downloadpodman-a413d4d77f1701a62b9bb2e7beb00145544e2306.tar.gz
podman-a413d4d77f1701a62b9bb2e7beb00145544e2306.tar.bz2
podman-a413d4d77f1701a62b9bb2e7beb00145544e2306.zip
Add support for resource limits to play kube
Signed-off-by: Jordan Christiansen <xordspar0@gmail.com>
Diffstat (limited to 'test/e2e/common_test.go')
-rw-r--r--test/e2e/common_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go
index ec910109b..e36c86690 100644
--- a/test/e2e/common_test.go
+++ b/test/e2e/common_test.go
@@ -612,6 +612,15 @@ func SkipIfRootlessCgroupsV1(reason string) {
}
}
+func SkipIfUnprevilegedCPULimits() {
+ info := GetHostDistributionInfo()
+ if isRootless() &&
+ info.Distribution == "fedora" &&
+ (info.Version == "31" || info.Version == "32") {
+ ginkgo.Skip("Rootless Fedora doesn't have permission to set CPU limits before version 33")
+ }
+}
+
func SkipIfRootless(reason string) {
checkReason(reason)
if os.Geteuid() != 0 {