Thomas Vachuska

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

Change-Id: Iff9f3ca0da1cd5f23fa823ef04a72e48d859f87a
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