blob: d64a2ac3a189232c638b8ddd7b67fb90e60d9ae9 [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
J. Richard Barnette50ef8892015-03-23 15:44:00 -070014../cli/atest host list -w cautotest | awk '
J. Richard Barnette63ff93e2014-09-16 10:22:55 -070015 $0 !~ /^Host / &&
16 $0 !~ /board:(parrot|butterfly)/ {print $1}
17 ' | sort | ./haveservo | xargs -l1 ./servo-stat
J. Richard Barnette556038b2014-07-08 14:33:00 -070018date >&2