Skip to content

Commit

Permalink
cukinia: fix bashism in result comparison
Browse files Browse the repository at this point in the history
The comparison operator '==' is a bashism, and should be replaced by
'=' for portability.
  • Loading branch information
kevlhop authored and joufellasfl committed Apr 12, 2024
1 parent f2a2f9d commit b2c1a5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cukinia
Original file line number Diff line number Diff line change
Expand Up @@ -1234,13 +1234,13 @@ _junitxml_add_case()
<testcase classname="${__log_class:-cukinia}" name="$name" time="0">
EOF

if [ "$result" == "FAIL" ]; then
if [ "$result" = "FAIL" ]; then
__suite_failures=$((__suite_failures + 1))

cat >>"$logfile" <<EOF
<failure type="unit-test" message="failed"><![CDATA[$message: FAIL]]></failure>
EOF
elif [ "$result" == "SKIP" ]; then
elif [ "$result" = "SKIP" ]; then
__suite_skipped=$((__suite_skipped + 1))

cat >>"$logfile" <<EOF
Expand Down

0 comments on commit b2c1a5e

Please sign in to comment.