Simran Basi | e0479af | 2014-12-02 17:09:49 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
J. Richard Barnette | 254e80d | 2015-04-20 15:07:51 -0700 | [diff] [blame] | 3 | # We have some very rudimentary command line processing, which we |
| 4 | # share with run-board-inventory. |
| 5 | |
Simran Basi | e0479af | 2014-12-02 17:09:49 -0800 | [diff] [blame] | 6 | SCRIPT_DIR=$(dirname $(readlink -f $0)) |
J. Richard Barnette | 254e80d | 2015-04-20 15:07:51 -0700 | [diff] [blame] | 7 | cd $SCRIPT_DIR/.. |
| 8 | . contrib/inventory_options |
Simran Basi | e0479af | 2014-12-02 17:09:49 -0800 | [diff] [blame] | 9 | |
Kevin Cheng | cf0ad2b | 2016-04-19 14:51:39 -0700 | [diff] [blame] | 10 | # Let's balance out the pools for the deputies before sending the eMail. |
Kevin Cheng | 4e14f58 | 2016-06-22 13:53:22 -0700 | [diff] [blame] | 11 | BALANCE_POOL_LOG=balance_pool.log.$(date +%Y-%m-%d) |
Jacob Kopczynski | f8d90a8 | 2017-10-10 14:37:33 -0700 | [diff] [blame^] | 12 | ARGS=( --production --all-boards all_critical_pools ) |
| 13 | site_utils/balance_pools.py "${ARGS[@]}" &> logs/dut-data/$BALANCE_POOL_LOG |
Kevin Cheng | cf0ad2b | 2016-04-19 14:51:39 -0700 | [diff] [blame] | 14 | |
J. Richard Barnette | 96db349 | 2015-03-27 17:23:52 -0700 | [diff] [blame] | 15 | site_utils/lab_inventory.py $OPTIONS "${BOARD_NOTIFY[@]}" "${POOL_NOTIFY[@]}" |