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 | |
J. Richard Barnette | 655318d | 2014-07-24 15:24:24 -0700 | [diff] [blame] | 10 | # readlink -f $0, in case $0 is a symlink from somewhere else |
| 11 | cd $(dirname $(readlink -f $0)) |
J. Richard Barnette | 556038b | 2014-07-08 14:33:00 -0700 | [diff] [blame] | 12 | |
| 13 | date >&2 |
| 14 | for MASTER in cautotest cautotest-cq |
| 15 | do |
| 16 | ../cli/atest host list -w $MASTER |
| 17 | done | awk '$0 !~ /^Host / {print $1}' | sort | |
| 18 | ./haveservo | xargs -l1 ./servo-stat |
| 19 | date >&2 |