Skip to content
Snippets Groups Projects
Commit 9a796761 authored by Dmytro Bogatov's avatar Dmytro Bogatov :two_hearts:
Browse files

Fix.

parent 3cdca472
Branches
No related tags found
No related merge requests found
......@@ -21,25 +21,25 @@ do
fi
done
echo "" > $JUNIT_FILE
echo "" > "${JUNIT_FILE}"
echo "<?xml version='1.0'?>" >> $JUNIT_FILE
echo "<testsuites>" >> $JUNIT_FILE
echo "<testsuite name='Tidy' tests='$(( ${#PASS[@]} + ${#FAIL[@]} ))' failures='$((${#FAIL[@]}))' skipped='0' time='0.0000'>" >> $JUNIT_FILE
echo "<?xml version='1.0'?>" >> "${JUNIT_FILE}"
echo "<testsuites>" >> "${JUNIT_FILE}"
echo "<testsuite name='Tidy' tests='$(( ${#PASS[@]} + ${#FAIL[@]} ))' failures='$((${#FAIL[@]}))' skipped='0' time='0.0000'>" >> "${JUNIT_FILE}"
for test in "${PASS[@]}"
do
echo "<testcase name='${test}' classname='Tidy' time='0.0000'/>" >> $JUNIT_FILE
echo "<testcase name='${test}' classname='Tidy' time='0.0000'/>" >> "${JUNIT_FILE}"
done
for test in "${FAIL[@]}"
do
echo "<testcase name='${test}' classname='Tidy' time='0.0000'>" >> $JUNIT_FILE
echo "<failure message='malformed HTML'/>" >> $JUNIT_FILE
echo "</testcase>" >> $JUNIT_FILE
echo "<testcase name='${test}' classname='Tidy' time='0.0000'>" >> "${JUNIT_FILE}"
echo "<failure message='malformed HTML'/>" >> "${JUNIT_FILE}"
echo "</testcase>" >> "${JUNIT_FILE}"
done
echo "</testsuite>" >> $JUNIT_FILE
echo "</testsuites>" >> $JUNIT_FILE
echo "</testsuite>" >> "${JUNIT_FILE}"
echo "</testsuites>" >> "${JUNIT_FILE}"
if [ ${#FAIL[@]} -eq 0 ]; then
echo "Checks passed!"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment