From: Jeff Moyer Date: Mon, 21 Dec 2015 07:01:47 +0000 (+1100) Subject: dmflakey: don't run for dax mounts X-Git-Tag: v2022.05.01~2717 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7c8afd7a89a3a15c6901a0c55df4b5ba969369d6;p=users%2Fhch%2Fxfstests-dev.git dmflakey: don't run for dax mounts 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. Suggested-by: Dave Chinner Signed-off-by: Jeff Moyer Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/common/dmflakey b/common/dmflakey index dec85c172..5a45d1400 100644 --- a/common/dmflakey +++ b/common/dmflakey @@ -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`