The test case loop/009 calls udevadm control command with --ping option.
When systemd version is prior to 241, udevadm control command does not
support the option, and the test case fails. Check availability of the
option to avoid the failure.
Link: https://github.com/osandov/blktests/issues/129
Reported-by: Disha Goel <disgoel@linux.ibm.com>
Tested-by: Disha Goel <disgoel@linux.ibm.com>
Reviewed-by: Alyssa Ross <hi@alyssa.is>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
QUICK=1
+requires() {
+ if ! udevadm control --ping >& /dev/null; then
+ SKIP_REASONS+=("udevadm control does not support --ping option")
+ fi
+}
+
test() {
echo "Running ${TEST_NAME}"