-#!/bin/sh -
+#!/bin/bash -
# libguestfs
# Copyright (C) 2009 Red Hat Inc.
#
# Test download where the library cancels.
#
-#
+#
set -e
rm -f test.img
../fish/guestfish <<'EOF'
-add ../images/test.sqsh
+add ../images/test.iso
run
-mount /dev/sda /
+mount-ro /dev/sda /
# Download a file to /dev/full.
echo "Expect: write: /dev/full: No space left on device"