[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/15] qcow2_format.py: drop new line printing at end of dump()
From: |
Eric Blake |
Subject: |
[PULL 05/15] qcow2_format.py: drop new line printing at end of dump() |
Date: |
Tue, 9 Jun 2020 15:52:35 -0500 |
From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
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>
Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Message-Id: <20200606081806.23897-5-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.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 e968869ea6b2..8c187e9a7292 100755
--- a/tests/qemu-iotests/qcow2.py
+++ b/tests/qemu-iotests/qcow2.py
@@ -27,6 +27,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 0e517c1bbc5a..2b6c9612ae01 100644
--- a/tests/qemu-iotests/qcow2_format.py
+++ b/tests/qemu-iotests/qcow2_format.py
@@ -155,7 +155,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.27.0
- [PULL 00/15] bitmaps patches for 2020-06-09, Eric Blake, 2020/06/09
- [PULL 01/15] qemu-img: Fix doc typo for 'bitmap' subcommand, Eric Blake, 2020/06/09
- [PULL 05/15] qcow2_format.py: drop new line printing at end of dump(),
Eric Blake <=
- [PULL 03/15] qcow2.py: add licensing blurb, Eric Blake, 2020/06/09
- [PULL 04/15] qcow2.py: move qcow2 format classes to separate module, Eric Blake, 2020/06/09
- [PULL 10/15] qcow2_format.py: add field-formatting class, Eric Blake, 2020/06/09
- [PULL 07/15] qcow2_format.py: use modern string formatting, Eric Blake, 2020/06/09
- [PULL 09/15] qcow2_format.py: separate generic functionality of structure classes, Eric Blake, 2020/06/09
- [PULL 02/15] qcow2.py: python style fixes, Eric Blake, 2020/06/09
- [PULL 12/15] qcow2_format: refactor QcowHeaderExtension as a subclass of Qcow2Struct, Eric Blake, 2020/06/09
- [PULL 15/15] iotests: Fix 291 across more file systems, Eric Blake, 2020/06/09
- [PULL 06/15] qcow2_format.py: use tuples instead of lists for fields, Eric Blake, 2020/06/09
- [PULL 08/15] qcow2_format.py: use strings to specify c-type of struct fields, Eric Blake, 2020/06/09