[PATCH 3/3] virtinstall: Hide total_size in the progress bar if it doesn't need

2022-11-09 Thread Toshiki Sonoda
the total_size value. Signed-off-by: Toshiki Sonoda Signed-off-by: Haruka Ohata --- tests/data/meter/meter9.txt | 4 tests/test_misc.py | 14 ++ virtinst/_progresspriv.py | 8 ++-- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 tests/d

[PATCH 2/3] virtinstall: Fix the allocating disk size printed by the progress bar

2022-11-09 Thread Toshiki Sonoda
: Toshiki Sonoda Signed-off-by: Haruka Ohata --- virtinst/storage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/virtinst/storage.py b/virtinst/storage.py index ee58c5f6..6a37238b 100644 --- a/virtinst/storage.py +++ b/virtinst/storage.py @@ -697,6 +697,7 @@ class StorageVolume

[PATCH 1/3] virtinstall: Improve the progress bar output by meter.end()

2022-11-09 Thread Toshiki Sonoda
When virt-install transfers the vmlinuz and initrd.img from an iso disk, virt-install prints the file size as 0B to the progress bar. Therefore, we fix the meter to force update if meter.end() is called earlier than self.update_period. Signed-off-by: Toshiki Sonoda Signed-off-by: Haruka Ohata

[PATCH 0/3] Fix the virt-install progress bar file size

2022-11-09 Thread Toshiki Sonoda
updating the progress bar. In short, the result is printed as 0B. In addition, 0B is printed at "Creating domain" printing. 0B is meaningless and can be misled as a failed transfer. Toshiki Sonoda (3): virtinstall: Improve the progress bar output by meter.end() virtinstall: Fix the alloc