From: Luca Boccassi Date: Fri, 27 Oct 2023 23:46:40 +0000 (+0100) Subject: test: io.latency cgroup support might not be available, skip test X-Git-Tag: v255-rc1~110 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ad5aedadcfeebd2df65faf25a08149c93d20461;p=thirdparty%2Fsystemd.git test: io.latency cgroup support might not be available, skip test It doesn't seem to be enabled on Debian stable, and the test fails. Follow-up for 5efc8183c9cf9b --- diff --git a/test/units/testsuite-07.exec-context.sh b/test/units/testsuite-07.exec-context.sh index d6a55cafe41..477b9e84dac 100755 --- a/test/units/testsuite-07.exec-context.sh +++ b/test/units/testsuite-07.exec-context.sh @@ -109,8 +109,11 @@ if ! systemd-detect-virt -cq; then -p IODeviceWeight="/foo/bar 999" ) - systemd-run --wait --pipe --unit "$SERVICE_NAME" "${ARGUMENTS[@]}" \ - bash -xec "diff <(echo $EXPECTED_IO_MAX) $CGROUP_PATH/io.max; diff <(echo $EXPECTED_IO_LATENCY) $CGROUP_PATH/io.latency" + # io.latency not available by default on Debian stable + if [ -e /sys/fs/cgroup/system.slice/io.latency ]; then + systemd-run --wait --pipe --unit "$SERVICE_NAME" "${ARGUMENTS[@]}" \ + bash -xec "diff <(echo $EXPECTED_IO_MAX) $CGROUP_PATH/io.max; diff <(echo $EXPECTED_IO_LATENCY) $CGROUP_PATH/io.latency" + fi # CPUScheduling= ARGUMENTS=(