Merge pull request #249 from flatcar-linux/t-lo/ci-automation-tapfile-ascii

ci-automation/tapfile_helper_lib.sh: only ASCII chars
This commit is contained in:
Thilo Fromm 2022-03-10 11:34:04 +01:00 committed by GitHub
commit 194c503b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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