On Wed, Aug 13, 2014 at 07:36:27PM +0400, Dmitry Monakhov wrote: > Currently mkfs faile due to incorrect options > > Signed-off-by: Dmitry Monakhov <dmonakhov@xxxxxxxxxx> > --- > tests/shared/298 | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tests/shared/298 b/tests/shared/298 > index 372fd02..685ba27 100755 > --- a/tests/shared/298 > +++ b/tests/shared/298 > @@ -134,8 +134,8 @@ mkdir $loop_mnt > > [ "$FSTYP" = "xfs" ] && MKFS_OPTIONS="-f $MKFS_OPTIONS" > > -$MKFS_PROG -t $FSTYP $MKFS_OPTIONS $loop_dev &> /dev/null > -$MOUNT_PROG $loop_dev $loop_mnt > +run_check $MKFS_PROG -t $FSTYP -- $MKFS_OPTIONS $loop_dev > +run_check $MOUNT_PROG $loop_dev $loop_mnt Urk. Please don't propagate run_check into code that doesn't need it. What we should do here is write a generic wrapper - _mkfs_dev - which allows you to pass in a device to run mkfs on. This can then be implemented similar to _scratch_mkfs, and so avoid the need for everyone to re-invent the wheel slightly differently to support different filesystems on loop devices in generic/shared tests. Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html