diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-01 21:17:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-01 21:17:05 +0300 |
commit | 143a33345cf3607ad35ec31130cec4922bc1113c (patch) | |
tree | 33b0a2658928f06d4ab20f8ec7d3aeadfbdd08d9 /scripts/rspec_bisect_flaky | |
parent | 3bdc719293f08ed357ef452f3e2a11a9b29531e7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/rspec_bisect_flaky')
-rwxr-xr-x | scripts/rspec_bisect_flaky | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/rspec_bisect_flaky b/scripts/rspec_bisect_flaky index efeb9bcb5a0..2ef6dedb4c2 100755 --- a/scripts/rspec_bisect_flaky +++ b/scripts/rspec_bisect_flaky @@ -10,20 +10,20 @@ if [ $# -eq 0 ]; then exit fi -files=( $@ ) +files=( "$@" ) len=${#files[@]} target=${files[$len-1]} # Trap interrupts and exit instead of continuing the loop trap "echo Exited!; exit 2;" SIGINT SIGTERM -# Show which set of specs are running -set -x +# Show which set of specs are running and exit immediately if they fail. +set -xe # Do the speedy case first, run each spec with our failing spec for file in "${files[@]}"; do - bin/rspec $file $target + bin/rspec "$file" "$target" done # Do a full bisect given we did not find candidates with speedy cases -bin/rspec --bisect=verbose $@ +bin/rspec --bisect=verbose "$@" |