J. Richard Barnette | 556038b | 2014-07-08 14:33:00 -0700 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Go through all hosts known to the database for cautotest or |
| 4 | # cautotest-cq. Find all hosts with a corresponding servo host. |
| 5 | # Run servo-stat for each of those hosts. |
| 6 | # |
| 7 | # Output from servo-stat goes to stdout. Starting and ending |
| 8 | # timestamps are recorded on stderr. |
| 9 | |
| 10 | cd $(dirname $0) |
| 11 | |
| 12 | date >&2 |
| 13 | for MASTER in cautotest cautotest-cq |
| 14 | do |
| 15 | ../cli/atest host list -w $MASTER |
| 16 | done | awk '$0 !~ /^Host / {print $1}' | sort | |
| 17 | ./haveservo | xargs -l1 ./servo-stat |
| 18 | date >&2 |