From e2103bc4c5e90167c21c6f403c58c499b3dd1124 Mon Sep 17 00:00:00 2001 From: skarimo <40482491+skarimo@users.noreply.github.com> Date: Thu, 21 Sep 2023 09:57:19 -0400 Subject: [PATCH] rerun failed tests (#1547) --- run-tests.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/run-tests.sh b/run-tests.sh index 480dd6fb92b..913e079f1ae 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash function finish { - rm -rf rerun.txt failed.txt + rm -rf failed.txt } trap finish EXIT @@ -11,10 +11,11 @@ if [ "${RECORD:-false}" == "false" ]; then RSPEC_RESULT=$? fi -bundle exec cucumber -f rerun -o rerun.txt -f pretty -CUCUMBER_RESULT=$? -if [ "$RERECORD_FAILED_TESTS" == "true" ] && [ "$CUCUMBER_RESULT" -ne "0" ]; then - RECORD=true bundle exec cucumber @rerun.txt +if [ "$RECORD" == "none" ]; then + bundle exec cucumber --retry 1 + CUCUMBER_RESULT=$? +else + bundle exec cucumber CUCUMBER_RESULT=$? fi