Prepare for version 1.0.30. Reduce boot loop script to 10 boots.
[libguestfs.git] / test-bootbootboot.sh
index 731f715..7728f38 100755 (executable)
 # which doesn't have the required KVM patches).  Test repeatedly
 # booting.
 
+set -e
+
+rm -f test1.img
 dd if=/dev/zero of=test1.img bs=1024k count=500
 
-n=20
+n=10
+if [ -n "$1" ]; then n=$1; fi
 
 export LIBGUESTFS_DEBUG=1
 
@@ -33,3 +37,5 @@ for i in $(seq 1 $n); do
 done
 
 rm test1.img
+
+echo Test boot completed after $n iterations.