aboutsummaryrefslogtreecommitdiff
path: root/test/apiv2/test-apiv2
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2020-02-26 09:17:13 -0700
committerEd Santiago <santiago@redhat.com>2020-03-02 13:19:42 -0700
commit56120894125b0859a81af2f96062157465b56e87 (patch)
treeb9ca20ae31bb4f884ae7818a08004b5af55dced4 /test/apiv2/test-apiv2
parent47c4ea39196cedac87e7a4e4c1ead54ed9d7ed50 (diff)
downloadpodman-56120894125b0859a81af2f96062157465b56e87.tar.gz
podman-56120894125b0859a81af2f96062157465b56e87.tar.bz2
podman-56120894125b0859a81af2f96062157465b56e87.zip
CI: add API v2 tests
API v2 has been quiet for a few days, and the test script is actually passing. Let's take advantage of this opportunity to get them running in CI. Requires adding a check for cgroupsv2 Signed-off-by: Ed Santiago <santiago@redhat.com>
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