X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=regressions%2Ftest-cancellation-upload-daemoncancels.sh;h=8204530bc905bb5cb6b9f2885dfcdaece9996f9c;hp=c56b1c2269fb6ceedbd6a6c7749734e749801436;hb=5e1aff7856f721bf5737815a5b65c0de23ab0b0c;hpb=b5e29ac706004ad29da2e0949beda41e8e27e398 diff --git a/regressions/test-cancellation-upload-daemoncancels.sh b/regressions/test-cancellation-upload-daemoncancels.sh index c56b1c2..8204530 100755 --- a/regressions/test-cancellation-upload-daemoncancels.sh +++ b/regressions/test-cancellation-upload-daemoncancels.sh @@ -1,4 +1,4 @@ -#!/bin/sh - +#!/bin/bash - # libguestfs # Copyright (C) 2009 Red Hat Inc. # @@ -22,16 +22,9 @@ set -e -rm -f test.img - -../fish/guestfish <<'EOF' -alloc test.img 10M -run - -sfdiskM /dev/sda , -mkfs ext2 /dev/sda1 -mount /dev/sda1 / +rm -f test1.img +../fish/guestfish -N fs -m /dev/sda1 <<'EOF' # Upload image, daemon should cancel because the image is too large # to upload into itself. echo "Expect: write: /test: No space left on device" @@ -40,4 +33,4 @@ echo "Expect: write: /test: No space left on device" ping-daemon EOF -rm -f test.img +rm -f test1.img