]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qemu-iotests: Fix cleanup for 192
authorKevin Wolf <kwolf@redhat.com>
Wed, 8 May 2019 12:00:44 +0000 (14:00 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 10 May 2019 14:45:40 +0000 (16:45 +0200)
Test case 192 calls _launch_qemu, so it also needs to _cleanup_qemu when
it's done, otherwise the QMP FIFOs stay around in scratch/. It also
creates a temporary NBD socket that needs to be removed as well at the
end of the test case.

Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
tests/qemu-iotests/192

index 158086f9d2c39af8d564650bcaa03855f5879550..61a88ac88d4690bffd77cbc53f2dcb818d886fc0 100755 (executable)
@@ -29,7 +29,9 @@ status=1      # failure is the default!
 
 _cleanup()
 {
-       _cleanup_test_img
+    _cleanup_qemu
+    _cleanup_test_img
+    rm -f "$TEST_DIR/nbd"
 }
 trap "_cleanup; exit \$status" 0 1 2 3 15