Skip to content

Commit

Permalink
Make sure all null and new-line characters are replaced by <br/>
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Oct 4, 2024
1 parent c764572 commit 8e0560a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bot/check-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ else
# Grep the entire output of ReFrame, so that we can report it in the foldable section of the test report
GP_success_full='(?s)\[----------\] start processing checks.*?\[==========\] Finished on [a-zA-Z0-9 ]*'
# tr '\0' '\n' places back the newline characters that the -z option of grep turned into null characters
grep_reframe_success_full=$(echo -e "$(grep -v "^>> searching for " ${job_dir}/${job_out} | grep -Pzo "${GP_success_full}" | tr '\0' '\n')\n")
grep_reframe_success_full=$( \
grep -v "^>> searching for " ${job_dir}/${job_out} | \
grep -Pzo "${GP_success_full}" | \
sed 's/\x00/<br\/>/g' |
sed ':a;N;$!ba;s/\n/<br\/>/g' \
)
grep_reframe_result=${grep_reframe_success_full}
echo "grep_reframe_success_full: ${grep_reframe_success_full}"
fi
Expand Down

0 comments on commit 8e0560a

Please sign in to comment.