blob: 162d8ede8fb3da702a4c31a6e291a0ee5ab8b7ae [file] [log] [blame]
Andrew Jeffery8dfebd82017-03-30 14:56:54 +10301#!/bin/bash -x
2
3set -euo pipefail
4
Andrew Jeffery724782e2017-03-30 19:41:09 +10305CONNECT="$@"
Andrew Jeffery8dfebd82017-03-30 14:56:54 +10306
7i=0
8
9while true;
10do
11 echo Boot $i
12
13 ssh ${CONNECT} /usr/sbin/obmcutil poweron
Andrew Jeffery724782e2017-03-30 19:41:09 +103014 time expect petitboot.exp -- ${CONNECT}
Andrew Jeffery8dfebd82017-03-30 14:56:54 +103015 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