qemu-iotests: Fix cleanup for 192
PATCH 1/1 qemu-iotests: Fix cleanup for 192
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.
--- tests/qemu-iotests/192 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
tests/qemu-iotests/192 +3 -1
@@ -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
Signature · 1 line
2.20.1
Quoted 16 lines · Kevin Wolf
Test case 192 calls
_launch_qemu, so it also needs to_cleanup_qemuwhen 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 <[email protected]>Signed-off-by Kevin Wolf <[email protected]>--- tests/qemu-iotests/192 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)tests/qemu-iotests/192 +0
-0
tests/qemu-iotests/192 status=1 # failure is the default! · line 36
Quoted 9 lines
tests/qemu-iotests/192 +3
-1@@ -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
That fixes the issue, indeed! Thanks!
Quoted 10 lines · Kevin Wolf
Test case 192 calls
_launch_qemu, so it also needs to_cleanup_qemuwhen 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 <[email protected]>Signed-off-by Kevin Wolf <[email protected]>--- tests/qemu-iotests/192 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Well...