virt-manager/tests/data/meter/meter2.txt
Cole Robinson 4114fa1aa8 progress: Fix showing correct final total
Reproducer:
Reproducer:
./virt-install --connect test:///default \
               --location tests/data/fakemedia/fake-f26-netinst.iso

Before:
Starting install...
Retrieving 'vmlinuz'                            |    0 B  00:00:00 ...
Retrieving 'initrd.img'                         |    0 B  00:00:00 ...

After:
Starting install...
Retrieving 'vmlinuz'                            |    9 B  00:00:00 ...
Retrieving 'initrd.img'                         |    9 B  00:00:00 ...

progress.end() currently only reports the total amount of bytes
that were last written to the UI. It should report the total amount
that's been passed to update().

Reported-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-12-14 13:01:48 -05:00

13 lines
732 B
Plaintext

Meter text test 0% [ ] 0 B/s | 0 B --:--:-- ETA
Meter text test 1% [ ] 0 B/s | 100 B --:--:-- ETA
Meter text test 2% [- ] 67 B/s | 200 B 00:02:27 ETA
Meter text test 20% [======= ] 413 B/s | 2.0 kB 00:00:19 ETA
Meter text test 40% [============== ] 731 B/s | 3.9 kB 00:00:08 ETA
Meter text test | 4.4 kB 00:00:04 ...