From 56120894125b0859a81af2f96062157465b56e87 Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Wed, 26 Feb 2020 09:17:13 -0700 Subject: 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 --- test/apiv2/test-apiv2 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/apiv2/test-apiv2') 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 -- cgit v1.2.3-54-g00ecf