-#!/bin/sh -
+#!/bin/bash -
# libguestfs
# Copyright (C) 2009 Red Hat Inc.
#
set -e
rm -f test1.img
-dd if=/dev/zero of=test1.img bs=1024k count=500
n=10
if [ -n "$1" ]; then n=$1; fi
export LIBGUESTFS_DEBUG=1
-export LIBGUESTFS_PATH=../appliance
for i in $(seq 1 $n); do
echo Test boot $i of $n ...
- ../fish/guestfish -a test1.img run
+ ../fish/guestfish -N disk </dev/null
done
rm test1.img