blob: a9d5f584042b87bd3f1d337ddd2e49bff3df14f1 [file] [log] [blame]
Simran Basie0479af2014-12-02 17:09:49 -08001#!/bin/bash
2
J. Richard Barnette254e80d2015-04-20 15:07:51 -07003# We have some very rudimentary command line processing, which we
4# share with run-board-inventory.
5
Simran Basie0479af2014-12-02 17:09:49 -08006SCRIPT_DIR=$(dirname $(readlink -f $0))
J. Richard Barnette254e80d2015-04-20 15:07:51 -07007cd $SCRIPT_DIR/..
8. contrib/inventory_options
Simran Basie0479af2014-12-02 17:09:49 -08009
Kevin Chengcf0ad2b2016-04-19 14:51:39 -070010# Let's balance out the pools for the deputies before sending the eMail.
Kevin Cheng4e14f582016-06-22 13:53:22 -070011BALANCE_POOL_LOG=balance_pool.log.$(date +%Y-%m-%d)
Jacob Kopczynskif8d90a82017-10-10 14:37:33 -070012ARGS=( --production --all-boards all_critical_pools )
13site_utils/balance_pools.py "${ARGS[@]}" &> logs/dut-data/$BALANCE_POOL_LOG
Kevin Chengcf0ad2b2016-04-19 14:51:39 -070014
J. Richard Barnette96db3492015-03-27 17:23:52 -070015site_utils/lab_inventory.py $OPTIONS "${BOARD_NOTIFY[@]}" "${POOL_NOTIFY[@]}"