Skip to content

Commit ea2baaa

Browse files
authored
tests: add comment for behat output format handling (#11654)
Signed-off-by: nabim777 <[email protected]>
1 parent f5a087e commit ea2baaa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/acceptance/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ function run_behat_tests() {
261261
FAILED_SCENARIO_PATHS_COLORED=`awk '/Failed scenarios:/',0 ${TEST_LOG_FILE} | grep -a feature`
262262
# There will be some ANSI escape codes for color in the FEATURE_COLORED var.
263263
# Strip them out so we can pass just the ordinary feature details to Behat.
264+
# Also strip everything after ".feature:XX", including text such as "(on line xx)" added by Behat indicating the failing step's line number.
264265
# Thanks to https://en.wikipedia.org/wiki/Tee_(command) and
265266
# https://stackoverflow.com/questions/23416278/how-to-strip-ansi-escape-sequences-from-a-variable
266267
# for ideas.

0 commit comments

Comments
 (0)