Skip to content

Commit

Permalink
[Tests-Only] remove UI tests from expected failures if rerun is succe…
Browse files Browse the repository at this point in the history
…ssful
  • Loading branch information
phil-davis committed Aug 26, 2020
1 parent 119f23d commit f840e9d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/acceptance/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -510,12 +510,13 @@ function run_behat_tests() {
# for ideas.
FAILED_SCENARIO_PATH=$(echo "${FEATURE_COLORED}" | sed "s/\x1b[^m]*m//g")

SUITE_PATH=`dirname ${FAILED_SCENARIO_PATH}`
SUITE=`basename ${SUITE_PATH}`
SCENARIO=`basename ${FAILED_SCENARIO_PATH}`
SUITE_SCENARIO="${SUITE}/${SCENARIO}"

if [ -n "${EXPECTED_FAILURES_FILE}" ]
then
SUITE_PATH=`dirname ${FAILED_SCENARIO_PATH}`
SUITE=`basename ${SUITE_PATH}`
SCENARIO=`basename ${FAILED_SCENARIO_PATH}`
SUITE_SCENARIO="${SUITE}/${SCENARIO}"
grep -x ${SUITE_SCENARIO} ${EXPECTED_FAILURES_FILE} > /dev/null
if [ $? -eq 0 ]
then
Expand Down

0 comments on commit f840e9d

Please sign in to comment.