From c26c3ddf8eb19d85b9de1165e21ad4097781e0bf Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 24 Jun 2020 22:49:12 +0100 Subject: [PATCH] TAP 13 specification See https://testanything.org/tap-version-13-specification.html --- lib/linter.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/linter.sh b/lib/linter.sh index 9f7a8c96..32604fb9 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -564,7 +564,7 @@ LintAnsibleFiles() ####################################################### if [ -n "${OUTPUT_FORMAT}" ] ; then echo "nok ok ${INDEX} - ${FILE}" >> "${TMPFILE}" - printf " ---\n but:[%s]\n ..." "$LINT_CMD" >> "${TMPFILE}" + printf " ---\n message:[%s]\n ..." "$LINT_CMD" >> "${TMPFILE}" fi else ########### @@ -585,7 +585,7 @@ LintAnsibleFiles() # Generate report in TAP format # ################################# if [ -n "${OUTPUT_FORMAT}" ] && [ ${INDEX} -gt 0 ] ; then - echo "1..${INDEX}" > "${REPORT_OUTPUT_FILE}" + printf "TAP version 13\n1..%s" "${INDEX}" > "${REPORT_OUTPUT_FILE}" cat "${TMPFILE}" >> "${REPORT_OUTPUT_FILE}" fi @@ -1913,7 +1913,7 @@ LintCodebase() ####################################################### if [ -n "${OUTPUT_FORMAT}" ] ; then echo "nok ok ${INDEX} - ${FILE}" >> "${TMPFILE}" - printf " ---\n but:[%s]\n ..." "$LINT_CMD" >> "${TMPFILE}" + printf " ---\n message:[%s]\n ..." "$LINT_CMD" >> "${TMPFILE}" fi else @@ -1935,7 +1935,7 @@ LintCodebase() # Generate report in TAP format # ################################# if [ -n "${OUTPUT_FORMAT}" ] && [ ${INDEX} -gt 0 ] ; then - echo "1..${INDEX}" > "${REPORT_OUTPUT_FILE}" + printf "TAP version 13\n1..%s" "${INDEX}" > "${REPORT_OUTPUT_FILE}" cat "${TMPFILE}" >> "${REPORT_OUTPUT_FILE}" fi fi