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 |
J. Richard Barnette | 50ef889 | 2015-03-23 15:44:00 -0700 | [diff] [blame] | 14 | ../cli/atest host list -w cautotest | awk ' |
J. Richard Barnette | 63ff93e | 2014-09-16 10:22:55 -0700 | [diff] [blame] | 15 | $0 !~ /^Host / && |
| 16 | $0 !~ /board:(parrot|butterfly)/ {print $1} |
| 17 | ' | sort | ./haveservo | xargs -l1 ./servo-stat |
J. Richard Barnette | 556038b | 2014-07-08 14:33:00 -0700 | [diff] [blame] | 18 | date >&2 |