diff --git a/ci-automation/tapfile_helper_lib.sh b/ci-automation/tapfile_helper_lib.sh index 32215bbbec..805ae62a8a 100644 --- a/ci-automation/tapfile_helper_lib.sh +++ b/ci-automation/tapfile_helper_lib.sh @@ -122,10 +122,12 @@ function tap_ingest_tapfile() { in_error_message=false has_error_message="true" else + # remove special characters and unicode. Jenkins TAP parser don't unicode. echo -e "$line" \ - | sed -e 's/^Error: "--- FAIL: /"/' -e 's/^[[:space:]]*//' \ + | 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' \ >> "${error_message_file}" continue fi