blob: 5b035e7a248381d643e174fcc512cb761631760d [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
Andrew Jeffery8dfebd82017-03-30 14:56:54 +103016
17 i=$(($i + 1))
18
19 echo
20done
21