X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=regressions%2Ftest-qemudie-midcommand.sh;h=47cad04c4500042076d55509864badd5903da40a;hp=2aca9225698e0641fa8b550ae71f31f6bc9078bc;hb=6590e04bdcc3038312cb0a5f5545f1f0924907b2;hpb=51ecd63944bb1374ebad518d814deaa2096bc365 diff --git a/regressions/test-qemudie-midcommand.sh b/regressions/test-qemudie-midcommand.sh index 2aca922..47cad04 100755 --- a/regressions/test-qemudie-midcommand.sh +++ b/regressions/test-qemudie-midcommand.sh @@ -1,4 +1,4 @@ -#!/bin/sh - +#!/bin/bash - # libguestfs # Copyright (C) 2009 Red Hat Inc. # @@ -20,17 +20,13 @@ set -e -rm -f test.pid test.img - -../fish/guestfish <<'EOF' -alloc test.img 10M -run +rm -f test.pid test1.img +../fish/guestfish -N disk <<'EOF' # Kill the subprocess after a short wait. pid | cat > test.pid ! sleep 2 ; kill $(cat test.pid) & -echo "Expect: 'guestfs_sleep reply failed, see earlier error messages'" -sleep 1000 # We should now be able to rerun the subprocess. @@ -38,4 +34,4 @@ run ping-daemon EOF -rm -f test.pid test.img +rm -f test.pid test1.img