github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/tests/system/hammer-runner.sh (about) 1 #!/usr/bin/env bash 2 set -e 3 4 # Usage: ./hammer-runner.sh tests/accounts_cleaning.rb 5 # It will launch the same system tests in a loop until it fails (up to 100 6 # tries). It is useful for trying to trigger an error on an system test 7 # that fails on some conditions that happen sometimes, but not very often. 8 9 bundle exec ruby clean.rb 10 for i in $(seq 0 100) 11 do 12 echo "==== Run $i ====" 13 bundle exec ruby "$@" 14 done