Skip to contentSkip to conversation

dmflakey: don't run for dax mounts

PATCH New Jeff Moyer 1 participant 1 message Dec 4, 2015

lore
Share & tools
lore

Jeff Moyer

author
#0 lore raw

PATCH v2 1/1 dmflakey: don't run for dax mounts

Hi,

There is no sense running dmflakey tests with the dax mount option, since dmflakey doesn't support it. Mark these as _notrun so that it is clear that this type of testing is not happenning for dax.

common/dmflakey +5 -0
index dec85c1..5a45d14 100644
@@ -21,6 +21,11 @@
 FLAKEY_ALLOW_WRITES=0
 FLAKEY_DROP_WRITES=1
 
+echo $MOUNT_OPTIONS | grep -q dax
+if [ $? -eq 0 ]; then
+	_notrun "Cannot run tests with DAX on dmflakey devices"
+fi
+
 _init_flakey()
 {
 	local BLK_DEV_SIZE=`blockdev --getsz $SCRATCH_DEV`