Thomas Vachuska | 9efd6b3 | 2016-07-13 15:44:32 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | #------------------------------------------------------------------------------- |
| 3 | # Loops the System Test Coordinator invocations while success/until failure. |
| 4 | #------------------------------------------------------------------------------- |
| 5 | |
| 6 | let run=1 |
| 7 | while true; do |
| 8 | printf "\033]0;%s\007" "STC Run #$run" |
| 9 | printf "Starting run %d...\n" $run |
| 10 | stc "$@" |
| 11 | status=$? |
| 12 | printf "Finished run %d...\n" $run |
| 13 | [ $status -ne 0 ] && break |
| 14 | let run=run+1 |
| 15 | done |