blob: ba5b99af82ab5e99f712d1dc01705fb28127fec0 [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
Andrew Jeffery7ffe8402019-04-01 10:46:22 +103013 ssh ${CONNECT} /usr/sbin/obmcutil --wait poweron
Andrew Jeffery724782e2017-03-30 19:41:09 +103014 time expect petitboot.exp -- ${CONNECT}
Andrew Jeffery7ffe8402019-04-01 10:46:22 +103015 ssh ${CONNECT} /usr/sbin/obmcutil --wait poweroff
Andrew Jeffery8dfebd82017-03-30 14:56:54 +103016
17 i=$(($i + 1))
18
19 echo
20done
21