From 2ac7b68a3939a9e5af3010320f347a9fca6641b0 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 26 Jun 2025 22:28:42 +0200 Subject: [PATCH] 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 --- tests/t_mmp_fail/script | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3