Skip to content

Commit 4d99520

Browse files
authored
fix: correct regex on test script (#11647)
1 parent 87d9ac5 commit 4d99520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/acceptance/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function run_behat_tests() {
264264
# Thanks to https://en.wikipedia.org/wiki/Tee_(command) and
265265
# https://stackoverflow.com/questions/23416278/how-to-strip-ansi-escape-sequences-from-a-variable
266266
# for ideas.
267-
FAILED_SCENARIO_PATHS=$(echo "${FAILED_SCENARIO_PATHS_COLORED}" | sed "s/\x1b[^m]*m//g")
267+
FAILED_SCENARIO_PATHS=$(echo "${FAILED_SCENARIO_PATHS_COLORED}" | sed "s/\x1b\[[0-9;]*m//g" | sed 's/\(\.feature:[0-9]\+\).*/\1/')
268268

269269
# If something else went wrong, and there were no failed scenarios,
270270
# then the awk, grep, sed command sequence above ends up with an empty string.

0 commit comments

Comments
 (0)