Skip to contentSkip to conversation

generic/050: fix _require_local_device $SCRATCH_DEV check order

PATCH New Luis Henriques 1 participant 1 message Jan 2, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 generic/050: fix _require_local_device $SCRATCH_DEV check order

Commit 2b4eae7fd825 ("common/rc: add scratch shutdown support for overlayfs") added a _require_local_device check to generic tests 042 and
050. However, for test 050, this check was added _before_ actually verifying that a SCRATCH_DEV actually exists. This patch simply re-orders the _require_local_device to the right place.

---
 tests/generic/050 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/generic/050 +1 -1
index dbf0ac5cd185..e6e8bc1b9733 100755
@@ -44,9 +44,9 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 _supported_fs generic
 _supported_os Linux
 
-_require_local_device $SCRATCH_DEV
 _require_scratch_nocheck
 _require_scratch_shutdown
+_require_local_device $SCRATCH_DEV
 _require_norecovery
 
 _scratch_mkfs >/dev/null 2>&1