diff mbox series

[v2,2/2] qemu-iotests: fix image-fleecing pylint errors

Message ID 20211008062821.1010967-3-eesposit@redhat.com (mailing list archive)
State New, archived
Headers show
Series pylint: fix new errors and warnings in qemu-iotests | expand

Commit Message

Emanuele Giuseppe Esposito Oct. 8, 2021, 6:28 a.m. UTC
The problem here is that some variables are formatted with
unnecessary spaces to make it prettier and easier to read.

However, pylint complains about those additional spaces.
Temporarly remove the check, but just on those variables.

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
---
 tests/qemu-iotests/tests/image-fleecing | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/tests/qemu-iotests/tests/image-fleecing b/tests/qemu-iotests/tests/image-fleecing
index 8c5472f421..99101fe902 100755
--- a/tests/qemu-iotests/tests/image-fleecing
+++ b/tests/qemu-iotests/tests/image-fleecing
@@ -30,6 +30,9 @@  iotests.script_initialize(
     supported_platforms=['linux'],
 )
 
+# Temporarly disable bad-whitespace pylint check to keep
+# this formatting.
+# pylint: disable=bad-whitespace
 patterns = [('0x5d', '0',         '64k'),
             ('0xd5', '1M',        '64k'),
             ('0xdc', '32M',       '64k'),
@@ -47,6 +50,7 @@  zeroes = [('0', '0x00f8000', '32k'), # Left-end of partial-left (1M-32K)
 remainder = [('0xd5', '0x108000',  '32k'), # Right-end of partial-left [1]
              ('0xdc', '32M',       '32k'), # Left-end of partial-right [2]
              ('0xcd', '0x3ff0000', '64k')] # patterns[3]
+# pylint: enable=bad-whitespace
 
 def do_test(use_cbw, base_img_path, fleece_img_path, nbd_sock_path, vm):
     log('--- Setting up images ---')