We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8626c71 commit dbb011eCopy full SHA for dbb011e
tests/integration/helpers.bash
@@ -451,8 +451,14 @@ function requires() {
451
;;
452
cgroups_swap)
453
init_cgroup_paths
454
- if [ -v CGROUP_V1 ] && [ ! -e "${CGROUP_MEMORY_BASE_PATH}/memory.memsw.limit_in_bytes" ]; then
455
- skip_me=1
+ if [ -v CGROUP_V1 ]; then
+ if [ ! -e "${CGROUP_MEMORY_BASE_PATH}/memory.memsw.limit_in_bytes" ]; then
456
+ skip_me=1
457
+ fi
458
+ elif [ -v CGROUP_V2 ]; then
459
+ if [ -z "$(find "$CGROUP_BASE_PATH" -maxdepth 2 -type f -name memory.swap.max -print -quit)" ]; then
460
461
462
fi
463
464
cgroups_cpu_idle)
0 commit comments