From 64d624b896ab88249895ae51afd0785d6a9225e9 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 15 Jan 2021 21:30:03 +0545 Subject: [PATCH] Be more specific matching an expected-failure --- tests/acceptance/run.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/run.sh b/tests/acceptance/run.sh index aa964c76d15..f2d49deda6e 100755 --- a/tests/acceptance/run.sh +++ b/tests/acceptance/run.sh @@ -96,7 +96,10 @@ if [ -n "${EXPECTED_FAILURES_FILE}" ]; then continue fi - if [[ "${LINE}" =~ -\ \[(.*?)] ]]; then + # Match lines that have [someSuite/someName.feature:n] - the part inside the + # brackets is the suite, feature and line number of the expected failure. + # Else ignore the line. + if [[ "${LINE}" =~ \[(\S+\/\S+\.feature:\d+)] ]]; then LINE="${BASH_REMATCH[1]}" else continue