Artifact 164034822d9e6942ef91a81cc632c9aa4422321b:
- Executable file tests/release/tests/itemwait/watchrun.sh — part of check-in [db023d6701] at 2015-06-14 18:34:44 on branch v1.60 — Added test itemwait (uses itemmatch and itemwait) (user: matt, size: 392) [annotate] [blame] [check-ins using]
#!/bin/bash runname=$1 pass=1 alldone=1 while ! $alldone;do sleep 5 bigrun_running=$(megatest -list-runs a|egrep 'bigrun\(.*RUNNING'|wc -l) bigrun2_pass=$(megatest -list-runs a|egrep 'bigrun2.*COMPLETED.*PASS') if [[ $bigrun_running -gt 0 && $bigrun2_pass -gt 0 ]];then pass=0 alldone=0 fi done if $pass;then echo PASS exit 0 else echo FAIL exit 1 fi