lib: Fix memory leak when debugging enabled (found by valgrind).
[libguestfs.git] / regressions / test-bootbootboot.sh
index 05ff6df..476cfdb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh -
+#!/bin/bash -
 # libguestfs
 # Copyright (C) 2009 Red Hat Inc.
 #
@@ -14,7 +14,7 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 # Some versions of qemu can be flakey and can hang occasionally
 # during boot (particularly KVM if the BIOS is the qemu version
 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