1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-09 12:58:26 +03:00

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
This commit is contained in:
Luca Boccassi 2023-10-28 00:46:40 +01:00 committed by Frantisek Sumsal
parent a868e43772
commit 3ad5aedadc

View File

@ -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=(