The MMP tests need to be run on a real disk instead of tmpfs, since
the MMP block access is using O_DIRECT. As such, they create their
own test files in the local testing directory instead of using the
temporary file created in /tmp by the test_one script. Delete the
tempfs file before clobbering TMPFILE, otherwise it will leave the
unused file in /tmp after the test is completed.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
FSCK_OPT=-yf
+[ -f "$TMPFILE" ] && rm -f $TMPFILE
TMPFILE=$test_name.tmp
> $TMPFILE
FSCK_OPT=-yf
+[ -f "$TMPFILE" ] && rm -f $TMPFILE
TMPFILE=$test_name.tmp
> $TMPFILE
FS_SIZE=65536
MKE2FS_DEVICE_SECTSIZE=2048
export MKE2FS_DEVICE_SECTSIZE
+[ -f "$TMPFILE" ] && rm -f $TMPFILE
TMPFILE=$test_name.tmp
> $TMPFILE
stat -f $TMPFILE | grep -q "Type: tmpfs"
FSCK_OPT=-yf
+[ -f "$TMPFILE" ] && rm -f $TMPFILE
TMPFILE=$test_name.tmp
> $TMPFILE
FSCK_OPT=-yf
+[ -f "$TMPFILE" ] && rm -f $TMPFILE
TMPFILE=$test_name.tmp
> $TMPFILE