Skip to content

Commit

Permalink
fix(scripts): use perl
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed May 21, 2024
1 parent ce61dcf commit 88d8e1a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,12 @@ function get_failing_tests {
local logs="$1"
local stage="$2"

export logs

failed="$(
grep -a '<<< FAILURE' < "$logs" \
| sed -n -e 's/^.*EOorg.EOeolang.EO//p' \
| sed -e 's/_/-/g' \
| sed -e 's/Test$//g'
perl -ne 'print if /<<< FAILURE/' "$logs" \
| perl -pe 's/^.*EOorg.EOeolang.EO(.*)Test$/$1/p' \
| perl -pe 's/_/-/g'
)"

if [[ "$failed" = "" ]]; then
Expand Down

0 comments on commit 88d8e1a

Please sign in to comment.