summaryrefslogtreecommitdiff
path: root/test/apiv2/test-apiv2
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-03-02 23:41:12 +0100
committerGitHub <noreply@github.com>2020-03-02 23:41:12 +0100
commitc5dfd83cf4528e58f5928ac1ef1f2b00fd5ca559 (patch)
treeb9ca20ae31bb4f884ae7818a08004b5af55dced4 /test/apiv2/test-apiv2
parent47c4ea39196cedac87e7a4e4c1ead54ed9d7ed50 (diff)
parent56120894125b0859a81af2f96062157465b56e87 (diff)
downloadpodman-c5dfd83cf4528e58f5928ac1ef1f2b00fd5ca559.tar.gz
podman-c5dfd83cf4528e58f5928ac1ef1f2b00fd5ca559.tar.bz2
podman-c5dfd83cf4528e58f5928ac1ef1f2b00fd5ca559.zip
Merge pull request #5333 from edsantiago/test_apiv2
CI: add API v2 tests
Diffstat (limited to 'test/apiv2/test-apiv2')
-rwxr-xr-xtest/apiv2/test-apiv26
1 files changed, 6 insertions, 0 deletions
diff --git a/test/apiv2/test-apiv2 b/test/apiv2/test-apiv2
index bc2ed142c..f0fb4ae34 100755
--- a/test/apiv2/test-apiv2
+++ b/test/apiv2/test-apiv2
@@ -290,6 +290,12 @@ function rootless() {
test "$ROOTLESS" = "true"
}
+# True if cgroups v2 are enabled
+function have_cgroupsv2() {
+ cgroup_type=$(stat -f -c %T /sys/fs/cgroup)
+ test "$cgroup_type" = "cgroup2fs"
+}
+
# END infrastructure code
###############################################################################
# BEGIN sanity checks