source: tests/vmresetloop

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 285 bytes
Line 
1#!/bin/bash
2
3MACHINE="$1"
4
5while true; do
6    for MAX in `seq 60 600`; do
7        (( SLEEP=(RANDOM%(MAX-20))+20 ))
8        echo "Max sleep is $MAX, this time i'll reset after: $SLEEP seconds";
9        sleep $SLEEP || exit 1
10        echo "Resetting $MACHINE..."
11        vmrun reset "$MACHINE" hard
12    done
13done
14
15
Note: See TracBrowser for help on using the repository browser.