Skip to content

Commit

Permalink
loop/009: require --option of udevadm control command
Browse files Browse the repository at this point in the history
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: #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>
  • Loading branch information
kawasaki committed Nov 30, 2023
1 parent 891b155 commit b5fad1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/loop/009
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ DESCRIPTION="check that LOOP_CONFIGURE sends uevents for partitions"

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}"

Expand Down

0 comments on commit b5fad1e

Please sign in to comment.