]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
test: fix test 98 getarg
authorHarald Hoyer <harald@redhat.com>
Thu, 11 Mar 2021 12:35:51 +0000 (13:35 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 12 Mar 2021 08:20:32 +0000 (09:20 +0100)
Fix a mis-replaced comparison.

test/TEST-98-GETARG/test.sh

index a87a5f6ea3f1583c8ef410283e7c1349d88bb914..5954e95663c2992270ff02602926af42c49b00ee 100755 (executable)
@@ -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