3 # sample the first argument to make sure it's not empty.
4 # we can't know if the command is really valid or not, but it at least
5 # needs to not be empty.
8 if [ -z "$test_to_run" ]; then
9 echo "This script requires a test or program to run as the first parameter."
13 trashdir="$(mktemp -d "$TMP/rounder.XXXXXX")"
15 echo "Running command: $*"
16 echo "Storing log files in: $trashdir"
21 echo ============================
22 echo round $round commencing
23 outputfile="$trashdir/run_round_${round}.log"
26 eval "${@}" 2>&1 | tee $outputfile
27 if [ ${PIPESTATUS[0]} -ne 0 ]; then
28 echo FAILURE IN RUN $round
31 echo round $round successful.