Linux block layer
 help / color / mirror / Atom feed
* [PATCH blktests 1/2] loop/009: only skip on a genuinely unrecognized --ping option
@ 2026-07-21 16:04 Sebastian Chlad
  2026-07-21 16:04 ` [PATCH blktests 2/2] loop/006: settle udev before completing the test Sebastian Chlad
  2026-07-24  0:46 ` [PATCH blktests 1/2] loop/009: only skip on a genuinely unrecognized --ping option Shin'ichiro Kawasaki
  0 siblings, 2 replies; 4+ messages in thread
From: Sebastian Chlad @ 2026-07-21 16:04 UTC (permalink / raw)
  To: linux-block; +Cc: Shin'ichiro Kawasaki, Sebastian Chlad

udevadm control --ping can also fail when udevd is busy or unresponsive
not only when the option is genuinely unsupported. Treating any failure
as "unsupported" risked masking a real udevd problem behind a
misleading skip reason instead of letting the test run and report it.

Signed-off-by: Sebastian Chlad <sebastian.chlad@suse.com>
---
 tests/loop/009 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/loop/009 b/tests/loop/009
index d3c7991..944f53b 100755
--- a/tests/loop/009
+++ b/tests/loop/009
@@ -11,7 +11,7 @@ DESCRIPTION="check that LOOP_CONFIGURE sends uevents for partitions"
 QUICK=1
 
 requires() {
-	if ! udevadm control --ping >& /dev/null; then
+	if ! udevadm control --help 2>&1 | grep -q -- '--ping'; then
 		SKIP_REASONS+=("udevadm control does not support --ping option")
 	fi
 }
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-24  0:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-21 16:04 [PATCH blktests 1/2] loop/009: only skip on a genuinely unrecognized --ping option Sebastian Chlad
2026-07-21 16:04 ` [PATCH blktests 2/2] loop/006: settle udev before completing the test Sebastian Chlad
2026-07-24  0:46   ` Shin'ichiro Kawasaki
2026-07-24  0:46 ` [PATCH blktests 1/2] loop/009: only skip on a genuinely unrecognized --ping option Shin'ichiro Kawasaki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox