check: wipe scratch devices between tests
[xfstests-dev.git] / common / xfs
index 24065813ca2afc0eb618e65c12d372358c95eaf9..af2b62ba920a8a069fe31abd58963800aae783f7 100644 (file)
@@ -295,6 +295,7 @@ _require_xfs_db_command()
        fi
        command=$1
 
+       _scratch_mkfs_xfs >/dev/null 2>&1
        _scratch_xfs_db -x -c "help" | grep $command > /dev/null || \
                _notrun "xfs_db $command support is missing"
 }