Skip to content

Commit 19e3b8e

Browse files
Install GNU tools
- GNU versions of sed and grep (compatible with the scripts) - fix warning: GREP_COLOR='01;31' is deprecated; use GREP_COLORS='mt=01;31'
1 parent 01d4de0 commit 19e3b8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ FROM maven:3.9.9-eclipse-temurin-21-alpine
1414
WORKDIR /opt/test-runner
1515

1616
RUN apk update && \
17-
apk add --no-cache jq && \
17+
apk add --no-cache --upgrade jq sed grep && \
1818
rm -rf /var/cache/apk/*
1919

2020
# Copy resources

bin/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ else
103103

104104
# Manually add colors to the output to help scanning the output for errors
105105
colorized_test_output=$(echo "${sanitized_output}" | \
106-
GREP_COLOR='01;31' grep --color=always -E -e '^\[ERROR\].+$|$')
106+
GREP_COLORS='mt=01;31' grep --color=always -E -e '^\[ERROR\].+$|$')
107107

108108
jq -n --arg output "${colorized_test_output}" '{version: 1, status: "fail", message: $output}' > ${results_file}
109109
fi

0 commit comments

Comments
 (0)