Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cukinia: correct log_suite file name #69

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cukinia
Original file line number Diff line number Diff line change
Expand Up @@ -1110,31 +1110,31 @@ _junitxml_add_case()

__suite_tests=$((__suite_tests + 1))

cat >>$logfile <<EOF
cat >>"$logfile" <<EOF
<testcase classname="${__log_class:-cukinia}" name="$name" time="0">
EOF

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

cat >>$logfile <<EOF
cat >>"$logfile" <<EOF
<failure type="unit-test" message="failed"><![CDATA[$message: FAIL]]></failure>
EOF
fi

if [ -s "$__stderr_tmp" ]; then
cat >>$logfile <<EOF
cat >>"$logfile" <<EOF
<system-err><![CDATA[$(cat $__stderr_tmp | tr -dc [:print:])]]></system-err>
EOF
fi

if [ -s "$__stdout_tmp" ]; then
cat >>$logfile <<EOF
cat >>"$logfile" <<EOF
<system-out><![CDATA[$(cat $__stdout_tmp | tr -dc [:print:])]]></system-out>
EOF
fi

echo " </testcase>" >>$logfile
echo " </testcase>" >>"$logfile"
}

# _colorize: return colorized string
Expand Down