Skip to contentSkip to conversation

generic/487: reorder logdev detection after filesystem detection

PATCH New David Sterba 1 participant 1 message Apr 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 generic/487: reorder logdev detection after filesystem detection

If SCRATCH_LOGDEV variable is unset, the _require_logdev check fails earlier than the following check that decides that this test should not be run on 'btrfs'.

---
 tests/generic/487 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/487 +1 -1
index 8952284cf66f..75db3bfb1333 100755
@@ -36,7 +36,6 @@ _require_scratch_nocheck
 # This test uses "dm" without taking into account the data could be on
 # realtime subvolume, thus the test will fail with rtinherit=1
 _require_no_rtinherit
-_require_logdev
 
 sflag='-s'
 case $FSTYP in
@@ -47,6 +46,7 @@ case $FSTYP in
                 ;;
 esac
 
+_require_logdev
 _require_dm_target error
 
 rm -f $seqres.full
Signature · 1 line
2.21.0