blob: ba674c0d5cf5a7cd49dde6b522bd322da046fd67 [file] [log] [blame]
Andrew Jeffery8dfebd82017-03-30 14:56:54 +10301#!/bin/bash -x
2
3set -euo pipefail
4
5CONNECT=$1
6
7i=0
8
9while true;
10do
11 echo Boot $i
12
13 ssh ${CONNECT} /usr/sbin/obmcutil poweron
14 time expect petitboot.exp ${CONNECT}
15 ssh ${CONNECT} /usr/sbin/obmcutil poweroff
16 sleep 20 # mboxd reload period. Remove when protocol v2 daemon is integrated
17
18 i=$(($i + 1))
19
20 echo
21done
22