From: Max Reitz Date: Mon, 18 Jan 2021 10:57:14 +0000 (+0100) Subject: iotests/129: Remove test images in tearDown() X-Git-Tag: v6.0.0-rc0~125^2~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=20e2580eec0f9bb7789fe545a4d57da7ab8c2be8;p=thirdparty%2Fqemu.git iotests/129: Remove test images in tearDown() Signed-off-by: Max Reitz Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Reviewed-by: Willian Rampazzo Message-Id: <20210118105720.14824-5-mreitz@redhat.com> --- diff --git a/tests/qemu-iotests/129 b/tests/qemu-iotests/129 index f57a2e19f6e..bd29c54af80 100755 --- a/tests/qemu-iotests/129 +++ b/tests/qemu-iotests/129 @@ -48,6 +48,8 @@ class TestStopWithBlockJob(iotests.QMPTestCase): result = self.vm.qmp("block_set_io_throttle", conv_keys=False, **params) self.vm.shutdown() + for img in (self.test_img, self.target_img, self.base_img): + iotests.try_remove(img) def do_test_stop(self, cmd, **args): """Test 'stop' while block job is running on a throttled drive.