X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=regressions%2Ftest-qemudie-midcommand.sh;h=cdf3f038f14d109e805fd34b93e765afecc8f018;hb=9b102aae65449a8d321e8cf44a3993af558291db;hp=2aca9225698e0641fa8b550ae71f31f6bc9078bc;hpb=51ecd63944bb1374ebad518d814deaa2096bc365;p=libguestfs.git diff --git a/regressions/test-qemudie-midcommand.sh b/regressions/test-qemudie-midcommand.sh index 2aca922..cdf3f03 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. # @@ -14,23 +14,19 @@ # # 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. # Test if we can handle qemu death in the middle of a command. 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