From 758b2e2bda24bd7c6cefb45c0026f81365038f7e Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Fri, 15 Dec 2023 12:52:28 +0900 Subject: [PATCH] helpers.bats: cgroups_cpu_burst: check kernel version On cgroup v2, cpu burst needs kernel >= 5.14 https://github.com/torvalds/linux/commit/f4183717b370ad28dd0c0d74760142b20e6e7931 Signed-off-by: Akihiro Suda --- tests/integration/helpers.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration/helpers.bash b/tests/integration/helpers.bash index bd38a75d4..4de319018 100755 --- a/tests/integration/helpers.bash +++ b/tests/integration/helpers.bash @@ -465,6 +465,8 @@ function requires() { p="$CGROUP_CPU_BASE_PATH" f="cpu.cfs_burst_us" elif [ -v CGROUP_V2 ]; then + # https://github.com/torvalds/linux/commit/f4183717b370ad28dd0c0d74760142b20e6e7931 + requires_kernel 5.14 p="$CGROUP_BASE_PATH" f="cpu.max.burst" fi