[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/7] iotests/129: Clean up pylint and mypy complaints
From: |
Max Reitz |
Subject: |
[PATCH 7/7] iotests/129: Clean up pylint and mypy complaints |
Date: |
Wed, 13 Jan 2021 15:06:16 +0100 |
Signed-off-by: Max Reitz <mreitz@redhat.com>
---
tests/qemu-iotests/129 | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/qemu-iotests/129 b/tests/qemu-iotests/129
index c3ad584ba2..ec303069e9 100755
--- a/tests/qemu-iotests/129
+++ b/tests/qemu-iotests/129
@@ -20,9 +20,10 @@
import os
import iotests
-import time
class TestStopWithBlockJob(iotests.QMPTestCase):
+ assert iotests.test_dir is not None
+
test_img = os.path.join(iotests.test_dir, 'test.img')
target_img = os.path.join(iotests.test_dir, 'target.img')
base_img = os.path.join(iotests.test_dir, 'base.img')
@@ -32,7 +33,8 @@ class TestStopWithBlockJob(iotests.QMPTestCase):
iotests.qemu_img('create', '-f', iotests.imgfmt, self.base_img, "1G")
iotests.qemu_img('create', '-f', iotests.imgfmt, self.test_img,
"-b", self.base_img, '-F', iotests.imgfmt)
- iotests.qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x5d 1M 128M',
self.test_img)
+ iotests.qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x5d 1M 128M',
+ self.test_img)
self.vm = iotests.VM()
self.vm.add_object('throttle-group,id=tg0,x-bps-total=1024')
--
2.29.2
[PATCH 2/7] iotests/129: Remove test images in tearDown(), Max Reitz, 2021/01/13
[PATCH 7/7] iotests/129: Clean up pylint and mypy complaints,
Max Reitz <=
[PATCH 6/7] iotests/129: Limit mirror job's buffer size, Max Reitz, 2021/01/13
Re: [PATCH 0/7] iotests/129: Fix it, Vladimir Sementsov-Ogievskiy, 2021/01/13
Re: [PATCH 0/7] iotests/129: Fix it, Kevin Wolf, 2021/01/13