These break the self-test suite on *BSD, and on some Linux distros
where /bin/sh is not implemented by bash.
Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
> $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)"
return 0
echo "e2fsck (should fail mmp_seq = EXT2_MMP_SEQ_FSCK) ..." >> $test_name.log
$FSCK $FSCK_OPT $TMPFILE >> $test_name.log 2>&1
status=$?
-if [ "$status" == 0 ] ; then
+if [ "$status" = 0 ] ; then
echo "e2fsck with MMP as EXT2_MMP_SEQ_FSCK ran!" > $test_name.failed
echo "failed"
return 1
> $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)"
return 0
TMPFILE=test.img
> $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)"
return 0
> $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)"
return 0
> $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)"
return 0