ci-automation/tapfile_helper_lib.sh: remove non-printable ASCII

Jenkins TAP file parser does not process non-printable ASCII characters
but bails out. This change removes all ASCII < 0x1F, so non-printable
characters are not included in the TAP report.

Fixes
    Caused by: unacceptable character '' (0x1B) special characters are not allowed
This commit is contained in:
Thilo Fromm 2022-03-16 09:37:48 +01:00
parent 24a74477a8
commit a9700e16fb

View File

@ -127,7 +127,7 @@ function tap_ingest_tapfile() {
| LC_ALL=C sed -e 's/^Error: "--- FAIL: /"/' -e 's/^[[:space:]]*//' \
-e "s/[>\\\"']/_/g" -e 's/[[:space:]]/ /g' \
-e 's/.\{200\}/&\n/g' \
-e 's/[^\x00-\x7F]/?/g' \
-e 's/[^\x1F-\x7F]/?/g' \
>> "${error_message_file}"
continue
fi