Thomas Vachuska

Adding 'stw' utility to run stc while success/until failure.

Change-Id: Iff9f3ca0da1cd5f23fa823ef04a72e48d859f87a
#!/bin/bash
#-------------------------------------------------------------------------------
# Loops the System Test Coordinator invocations while success/until failure.
#-------------------------------------------------------------------------------
let run=1
while true; do
printf "\033]0;%s\007" "STC Run #$run"
printf "Starting run %d...\n" $run
stc "$@"
status=$?
printf "Finished run %d...\n" $run
[ $status -ne 0 ] && break
let run=run+1
done