mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
test: load the io controller before checking if io.latency exists
Otherwise the following test gets always skipped.
This commit is contained in:
committed by
Luca Boccassi
parent
0689d46a75
commit
1ea27bd79e
@@ -119,8 +119,9 @@ if ! systemd-detect-virt -cq; then
|
||||
-p IODeviceWeight="/foo/bar 999"
|
||||
)
|
||||
|
||||
systemctl set-property system.slice IOAccounting=yes
|
||||
# io.latency not available by default on Debian stable
|
||||
if [ -e /sys/fs/cgroup/system.slice/io.latency ]; then
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user