]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
common: support internal RT device in _require_realtime
authorChristoph Hellwig <hch@lst.de>
Sat, 23 Nov 2024 06:54:15 +0000 (07:54 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 8 Apr 2025 06:48:26 +0000 (08:48 +0200)
If SCRATCH_DEV is a zoned device it implies an internal zoned RT device
and should not be skipped in _require_realtime.

Signed-off-by: Christoph Hellwig <hch@lst.de>
common/rc

index 16d627e1bdd4ca1c9bb0e8331c8305e5822fdc22..17a6a4137db7d65ce01a22f39e5058a7973be08c 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -2350,10 +2350,15 @@ _require_no_large_scratch_dev()
 #
 _require_realtime()
 {
-    [ "$USE_EXTERNAL" = yes ] || \
-       _notrun "External volumes not in use, skipped this test"
-    [ "$SCRATCH_RTDEV" = "" ] && \
-       _notrun "Realtime device required, skipped this test"
+       local zone_type=`_zone_type $SCRATCH_DEV`
+       if [ "${zone_type}" = "none" ]; then
+               if [ "$USE_EXTERNAL" != "yes" ]; then
+                       _notrun "External volumes not in use, skipped this test"
+               fi
+               if [ "$SCRATCH_RTDEV" = "" ]; then
+                       _notrun "Realtime device required, skipped this test"
+               fi
+       fi
 }
 
 # This test requires that a realtime subvolume is not in use