From: Harald Hoyer Date: Thu, 11 Mar 2021 12:35:51 +0000 (+0100) Subject: test: fix test 98 getarg X-Git-Tag: 054~313 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d99b4d0ebfd721a444a50cc74000a3eea2c14de;p=thirdparty%2Fdracut.git test: fix test 98 getarg Fix a mis-replaced comparison. --- diff --git a/test/TEST-98-GETARG/test.sh b/test/TEST-98-GETARG/test.sh index a87a5f6ea..5954e9566 100755 --- a/test/TEST-98-GETARG/test.sh +++ b/test/TEST-98-GETARG/test.sh @@ -126,7 +126,7 @@ test_run() { RESULT=("bridge" "val") (( ${#RESULT[@]} == ${#args[@]} )) || ret=$((ret+1)) for ((i=0; i < ${#RESULT[@]}; i++)); do - [[ ${args[$i]} || "${RESULT[$i]}" ]] || ret=$((ret+1)) + [[ ${args[$i]} == "${RESULT[$i]}" ]] || ret=$((ret+1)) done