tests: Use stat -c
[xfstests-dev.git] / tests / generic / 215
index 6ddd1fcffb0b75c3406eba89cd41ee20e9c3ed78..80df55d9277d72b4740b9673858b56ffa3e6416f 100755 (executable)
@@ -53,8 +53,8 @@ echo
 echo "creating test file"
 dd if=/dev/zero of=$testfile count=4096
 
-mtime1=`stat --printf="%Y" $testfile`
-ctime1=`stat --printf="%Z" $testfile`
+mtime1=`stat -"%Y" $testfile`
+ctime1=`stat -"%Z" $testfile`
 
 sleep 2
 
@@ -65,8 +65,8 @@ $XFS_IO_PROG -f               \
        -c 'mwrite 0 4096'      \
        $testfile | _filter_xfs_io_unique
 
-mtime2=`stat --printf="%Y" $testfile`
-ctime2=`stat --printf="%Z" $testfile`
+mtime2=`stat -"%Y" $testfile`
+ctime2=`stat -"%Z" $testfile`
 
 let mtime_diff=$mtime2-$mtime1
 let ctime_diff=$ctime2-$ctime1