From: Matthias Andree Date: Thu, 26 Jun 2025 20:28:42 +0000 (+0200) Subject: t_mmp_fail: resolve bash-ism [ a == b ] to [ a = b ] X-Git-Tag: v1.47.3-rc3~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ac7b68a3939a9e5af3010320f347a9fca6641b0;p=thirdparty%2Fe2fsprogs.git t_mmp_fail: resolve bash-ism [ a == b ] to [ a = b ] for those systems where sh does not support the == operator in the test or [ built-ins, for instance, on FreeBSD's sh. Signed-off-by: Matthias Andree Link: https://lore.kernel.org/r/20250626202919.321842-3-matthias.andree@gmx.de Signed-off-by: Theodore Ts'o --- diff --git a/tests/t_mmp_fail/script b/tests/t_mmp_fail/script index 5fa6a846b..57428fb76 100644 --- a/tests/t_mmp_fail/script +++ b/tests/t_mmp_fail/script @@ -10,14 +10,14 @@ fi $TUNE2FS -O project $TMPFILE >> $test_name.log 2>&1 status=$? -if [ "$status" == 0 ] ; then +if [ "$status" = 0 ] ; then echo "'tune2fs -O project' succeeded on small inode" > $test_name.failed echo "$test_name: $test_description: failed" return 1 fi $TUNE2FS -o bad_option $TMPFILE >> $test_name.log 2>&1 status=$? -if [ "$status" == 0 ] ; then +if [ "$status" = 0 ] ; then echo "'tune2fs -o bad_option' succeeded" > $test_name.failed echo "$test_name: $test_description: failed" return 1