mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
Regression test for blkio functionality
This commit is contained in:
parent
9f94a6ffaa
commit
58e40f84e1
1 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,11 @@
|
||||||
subtest "poweroff_cmd", sub {
|
subtest "poweroff_cmd", sub {
|
||||||
$machine->succeed("[ -x \"\$(cat /proc/sys/kernel/poweroff_cmd)\" ]")
|
$machine->succeed("[ -x \"\$(cat /proc/sys/kernel/poweroff_cmd)\" ]")
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Test whether the blkio controller is properly enabled.
|
||||||
|
subtest "blkio-cgroup", sub {
|
||||||
|
$machine->succeed("[ -n \"\$(cat /sys/fs/cgroup/blkio/blkio.sectors)\" ]")
|
||||||
|
};
|
||||||
'';
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue