blob: 70a6a3736ed5ae0db7537c54fe6a19d4ac53f940 [file] [log] [blame]
J. Richard Barnette556038b2014-07-08 14:33:00 -07001#!/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 Barnette655318d2014-07-24 15:24:24 -070010# readlink -f $0, in case $0 is a symlink from somewhere else
11cd $(dirname $(readlink -f $0))
J. Richard Barnette556038b2014-07-08 14:33:00 -070012
13date >&2
14for MASTER in cautotest cautotest-cq
15do
16 ../cli/atest host list -w $MASTER
17done | awk '$0 !~ /^Host / {print $1}' | sort |
18 ./haveservo | xargs -l1 ./servo-stat
19date >&2