X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=regressions%2Ftest-qemudie-midcommand.sh;h=cdf3f038f14d109e805fd34b93e765afecc8f018;hp=92a4c6889fea2dc32ce6d5c65673306887c47f01;hb=dd76ce2b4c93dd10d8eca9ab7c77bc831f103d03;hpb=4f4880303693bc2e55ce431e87302098654b7f03 diff --git a/regressions/test-qemudie-midcommand.sh b/regressions/test-qemudie-midcommand.sh index 92a4c68..cdf3f03 100755 --- a/regressions/test-qemudie-midcommand.sh +++ b/regressions/test-qemudie-midcommand.sh @@ -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