[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 03/12] qcow2_format.py: drop new line printing at end of dump(
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v4 03/12] qcow2_format.py: drop new line printing at end of dump() |
Date: |
Thu, 4 Jun 2020 20:41:26 +0300 |
This will simplify further conversion. To compensate, print this empty
line directly in cmd_dump_header().
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
tests/qemu-iotests/qcow2.py | 1 +
tests/qemu-iotests/qcow2_format.py | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/qcow2.py b/tests/qemu-iotests/qcow2.py
index d9c41668fd..79db81b040 100755
--- a/tests/qemu-iotests/qcow2.py
+++ b/tests/qemu-iotests/qcow2.py
@@ -10,6 +10,7 @@ from qcow2_format import (
def cmd_dump_header(fd):
h = QcowHeader(fd)
h.dump()
+ print()
h.dump_extensions()
diff --git a/tests/qemu-iotests/qcow2_format.py
b/tests/qemu-iotests/qcow2_format.py
index c7270a0a6e..99e5248e73 100644
--- a/tests/qemu-iotests/qcow2_format.py
+++ b/tests/qemu-iotests/qcow2_format.py
@@ -139,7 +139,6 @@ class QcowHeader:
value_str = f[1] % value
print("%-25s" % f[2], value_str)
- print("")
def dump_extensions(self):
for ex in self.extensions:
--
2.21.0
- Re: [PATCH v4 02/12] qcow2.py: move qcow2 format classes to separate module, (continued)
[PATCH v4 09/12] qcow2_format.py: QcowHeaderExtension: add dump method, Vladimir Sementsov-Ogievskiy, 2020/06/04
[PATCH v4 06/12] qcow2_format.py: use strings to specify c-type of struct fields, Vladimir Sementsov-Ogievskiy, 2020/06/04
[PATCH v4 07/12] qcow2_format.py: separate generic functionality of structure classes, Vladimir Sementsov-Ogievskiy, 2020/06/04
[PATCH v4 03/12] qcow2_format.py: drop new line printing at end of dump(),
Vladimir Sementsov-Ogievskiy <=
[PATCH v4 05/12] qcow2_format.py: use modern string formatting, Vladimir Sementsov-Ogievskiy, 2020/06/04
[PATCH v4 10/12] qcow2_format: refactor QcowHeaderExtension as a subclass of Qcow2Struct, Vladimir Sementsov-Ogievskiy, 2020/06/04
[PATCH v4 08/12] qcow2_format.py: add field-formatting class, Vladimir Sementsov-Ogievskiy, 2020/06/04
[PATCH v4 04/12] qcow2_format.py: use tuples instead of lists for fields, Vladimir Sementsov-Ogievskiy, 2020/06/04