Skip to content

Commit 4f248ce

Browse files
committed
fix check for deleted suites in expected failure file
1 parent 58410b0 commit 4f248ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/acceptance/check-deleted-suites-in-expected-failure.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ log_success() {
1818

1919
SCRIPT_PATH=$(dirname "$0")
2020
PATH_TO_SUITES="${SCRIPT_PATH}/features"
21-
EXPECTED_FAILURE_FILES=("expected-failures-localAPI-on-OCIS-storage.md" "expected-failures-API-on-OCIS-storage.md")
21+
EXPECTED_FAILURE_FILES=("expected-failures-localAPI-on-OCIS-storage.md" "expected-failures-API-on-OCIS-storage.md" "expected-failures-without-remotephp.md")
2222
# contains all the suites names inside tests/acceptance/features
2323
AVAILABLE_SUITES=($(ls -l "$PATH_TO_SUITES" | grep '^d' | awk '{print $NF}'))
2424

@@ -45,7 +45,7 @@ for expected_failure_file in "${EXPECTED_FAILURE_FILES[@]}"; do
4545
NONEXISTING_SCENARIOS=()
4646
for suite in "${EXPECTED_FAILURE_SUITES[@]}"; do
4747
if [[ " ${AVAILABLE_SUITES[*]} " != *" $suite "* ]]; then
48-
pattern="(${suite}/[a-zA-Z0-9]+\\.feature:[0-9]+)"
48+
pattern="(\\b${suite}/[a-zA-Z0-9]+\\.feature:[0-9]+)"
4949
NONEXISTING_SCENARIOS+=($(grep -Eo ${pattern} ${PATH_TO_EXPECTED_FAILURE_FILE}))
5050
fi
5151
done

0 commit comments

Comments
 (0)