Whamcloud - gitweb
tests: add basic test case for e2scan
[tools/e2fsprogs.git] / tests / m_mmp / script
index b3e206a..02b0b4b 100644 (file)
@@ -2,12 +2,12 @@ DESCRIPTION="enable MMP during mke2fs"
 FS_SIZE=65536
 MKE2FS_DEVICE_SECTSIZE=2048
 export MKE2FS_DEVICE_SECTSIZE
-TMPFILE=test.img
+TMPFILE=$test_name.tmp
 > $TMPFILE
 stat -f $TMPFILE | grep -q "Type: tmpfs"
-if [ $? == 0 ]; then
+if [ $? = 0 ]; then
        rm -f $TMPFILE
-       echo "skipped for tmpfs (no O_DIRECT support)"
+       echo "$test_name: $test_description: skipped for tmpfs (no O_DIRECT)"
        return 0
 fi
 MKE2FS_OPTS="-b 4096 -O mmp"