qemu/tests/qemu-iotests/tests
Abhiram Tilak 52df1a5b61 qemu-img: Fix Column Width and Improve Formatting in snapshot list
When running the command `qemu-img snapshot -l SNAPSHOT` the output of
VM_CLOCK (measures the offset between host and VM clock) cannot to
accommodate values in the order of thousands (4-digit).

This line [1] hints on the problem. Additionally, the column width for
the VM_CLOCK field was reduced from 15 to 13 spaces in commit b39847a5
in line [2], resulting in a shortage of space.

[1]:
https://gitlab.com/qemu-project/qemu/-/blob/master/block/qapi.c?ref_type=heads#L753
[2]:
https://gitlab.com/qemu-project/qemu/-/blob/master/block/qapi.c?ref_type=heads#L763

This patch restores the column width to 15 spaces and makes adjustments
to the affected iotests accordingly. Furthermore, addresses a potential
source
of confusion by removing whitespace in column headers. Example, VM CLOCK
is modified to VM_CLOCK. Additionally a '--' symbol is introduced when
ICOUNT returns no output for clarity.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2062
Fixes: b39847a505 ("migration: introduce icount field for snapshots")
Signed-off-by: Abhiram Tilak <atp.exp@gmail.com>
Message-ID: <20240123050354.22152-2-atp.exp@gmail.com>
[kwolf: Fixed up qemu-iotests 261 and 286]
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2024-03-18 13:30:34 +01:00
..
backing-file-invalidation python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
backing-file-invalidation.out iotests/backing-file-invalidation: Add new test 2022-09-30 18:43:44 +02:00
block-status-cache iotests: add qemu_img_map() function 2022-03-22 10:14:34 +01:00
block-status-cache.out iotests/block-status-cache: New test 2022-01-28 16:55:23 -06:00
copy-before-write python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
copy-before-write.out iotests: copy-before-write: add cases for cbw-timeout option 2022-06-29 10:57:02 +03:00
detect-zeroes-registered-buf iotests/detect-zeroes-registered-buf: add new test 2023-02-09 10:22:30 -05:00
detect-zeroes-registered-buf.out iotests/detect-zeroes-registered-buf: add new test 2023-02-09 10:22:30 -05:00
export-incoming-iothread python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
export-incoming-iothread.out iotests: Add regression test for issue 945 2022-05-04 15:55:23 +02:00
file-io-error monitor: only run coroutine commands in qemu_aio_context 2024-01-26 11:16:58 +01:00
file-io-error.out tests/file-io-error: New test 2023-08-29 13:01:24 +02:00
fuse-allow-other iotests/fuse-allow-other: Test allow-other 2021-07-09 12:26:05 +02:00
fuse-allow-other.out iotests/fuse-allow-other: Test allow-other 2021-07-09 12:26:05 +02:00
graph-changes-while-io python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
graph-changes-while-io.out iotests: Test commit with iothreads and ongoing I/O 2023-05-19 19:16:53 +02:00
image-fleecing python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
image-fleecing.out iotests/image-fleecing: test push backup with fleecing 2022-03-07 09:33:31 +01:00
iothreads-commit-active iotests: Test active commit with iothread and background I/O 2023-06-28 08:45:46 +02:00
iothreads-commit-active.out iotests: Test active commit with iothread and background I/O 2023-06-28 08:45:46 +02:00
iothreads-create iotests: Test blockdev-create in iothread 2023-05-30 17:29:44 +02:00
iothreads-create.out iotests: Test blockdev-create in iothread 2023-05-30 17:29:44 +02:00
iothreads-nbd-export iotests: Add test for reset/AioContext switches with NBD exports 2024-03-18 13:12:51 +01:00
iothreads-nbd-export.out iotests: Add test for reset/AioContext switches with NBD exports 2024-03-18 13:12:51 +01:00
iothreads-resize iotests: Test resizing image attached to an iothread 2023-05-10 14:16:53 +02:00
iothreads-resize.out monitor: only run coroutine commands in qemu_aio_context 2024-01-26 11:16:58 +01:00
iothreads-stream iotests/iothreads-stream: Use the right TimeoutError 2024-01-26 12:26:35 +01:00
iothreads-stream.out iotests: Test two stream jobs in a single iothread 2023-11-21 12:45:21 +01:00
iov-padding iotests/iov-padding: New test 2023-06-05 13:11:26 +02:00
iov-padding.out iotests/iov-padding: New test 2023-06-05 13:11:26 +02:00
luks-detached-header tests: Add case for LUKS volume with detached header 2024-02-09 12:50:38 +00:00
luks-detached-header.out tests: Add case for LUKS volume with detached header 2024-02-09 12:50:38 +00:00
migrate-bitmaps-postcopy-test python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
migrate-bitmaps-postcopy-test.out
migrate-bitmaps-test python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
migrate-bitmaps-test.out
migrate-during-backup python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
migrate-during-backup.out tests: add migrate-during-backup 2021-09-15 15:54:07 +02:00
migration-permissions python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
migration-permissions.out iotests/migration-permissions: New test 2022-02-01 10:51:39 +01:00
mirror-change-copy-mode iotests: add test for changing mirror's copy_mode 2023-10-31 19:46:51 +01:00
mirror-change-copy-mode.out iotests: add test for changing mirror's copy_mode 2023-10-31 19:46:51 +01:00
mirror-ready-cancel-error python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
mirror-ready-cancel-error.out iotests: Add mirror-ready-cancel-error test 2021-10-07 10:42:50 +02:00
mirror-top-perms python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
mirror-top-perms.out iotests: Test mirror-top filter permissions 2021-04-09 18:00:29 +02:00
nbd-multiconn python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
nbd-multiconn.out nbd/server: Allow MULTI_CONN for shared writable exports 2022-05-12 13:10:52 +02:00
nbd-qemu-allocation iotests: Improve and rename test 309 to nbd-qemu-allocation 2021-07-12 10:56:41 -05:00
nbd-qemu-allocation.out nbd/server: Add FLAG_PAYLOAD support to CMD_BLOCK_STATUS 2023-10-05 11:02:08 -05:00
nbd-reconnect-on-open iotests/nbd-reconnect-on-open: Fix NBD socket path 2023-05-10 14:16:53 +02:00
nbd-reconnect-on-open.out iotests/nbd-reconnect-on-open: Fix NBD socket path 2023-05-10 14:16:53 +02:00
parallels-checks tests: test self-cure of parallels image with duplicated clusters 2023-09-21 08:47:58 +02:00
parallels-checks.out tests: test self-cure of parallels image with duplicated clusters 2023-09-21 08:47:58 +02:00
parallels-read-bitmap iotests: add qemu_img_map() function 2022-03-22 10:14:34 +01:00
parallels-read-bitmap.out
qcow2-internal-snapshots iotests: Basic tests for internal snapshots 2023-12-21 22:49:27 +01:00
qcow2-internal-snapshots.out qemu-img: Fix Column Width and Improve Formatting in snapshot list 2024-03-18 13:30:34 +01:00
qemu-img-bitmaps qemu-img: Add --skip-broken-bitmaps for 'convert --bitmaps' 2021-07-21 14:14:41 -05:00
qemu-img-bitmaps.out qemu-img: map: report compressed data blocks 2023-09-20 17:46:01 +02:00
qemu-img-close-errors qemu-iotests: Test qemu-img bitmap/commit exit code on error 2023-02-01 16:52:15 +01:00
qemu-img-close-errors.out qemu-iotests: Test qemu-img bitmap/commit exit code on error 2023-02-01 16:52:15 +01:00
qsd-jobs iotests/qsd-jobs: Filter events in the first test 2021-04-09 18:00:29 +02:00
qsd-jobs.out monitor: only run coroutine commands in qemu_aio_context 2024-01-26 11:16:58 +01:00
regression-vhdx-log iotests: Regression test for vhdx log corruption 2023-04-11 13:54:43 +02:00
regression-vhdx-log.out iotests: Regression test for vhdx log corruption 2023-04-11 13:54:43 +02:00
remove-bitmap-from-backing iotests/remove-bitmap-from-backing: use qemu_img_info() 2022-03-22 10:14:32 +01:00
remove-bitmap-from-backing.out iotests: add test for removing persistent bitmap from backing file 2021-04-09 18:00:29 +02:00
reopen-file python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
reopen-file.out iotests/reopen-file: Test reopening file child 2022-05-04 15:55:23 +02:00
stream-error-on-reset python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
stream-error-on-reset.out iotests/stream-error-on-reset: New test 2022-01-14 12:03:16 +01:00
stream-under-throttle python: use vm.cmd() instead of vm.qmp() where appropriate 2023-10-12 14:21:44 -04:00
stream-under-throttle.out tests/stream-under-throttle: New test 2022-11-14 11:31:52 +01:00
zoned qemu-iotests: test zone append operation 2023-05-15 08:18:10 -04:00
zoned.out qemu-iotests: test zone append operation 2023-05-15 08:18:10 -04:00