2 # This script is used to deflake inherently flaky archer tests.
3 # It is invoked from lit tests as:
5 # which is then substituted by lit to:
6 # $(dirname %s)/deflake.bash mybinary
7 # The script runs the target program up to 10 times,
8 # until it fails (i.e. produces a race report).
10 for i
in $
(seq 1 10); do
12 if [[ $?
!= 0 ]]; then