Skip to content

Python / Acceptance Tests: improve logging

Cleber Rosa qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Python: close the log file kept by QEMUMachine before reading itpython/qemu/machine.py+2 -26 replies
2/6Python: expose QEMUMachine's temporary directorypython/qemu/machine.py python/qemu/qtest.py tests/acceptance/virtio-gpu.py +1 more+21 -137 replies
3/6Acceptance Tests: use the job work directory for created VMstests/acceptance/avocado_qemu/__init__.py+2 -12 replies
4/6Acceptance Tests: log information when creating QEMUMachinetests/acceptance/avocado_qemu/__init__.py+4 -21 reply
5/6Acceptance Tests: distinguish between temp and logs dirpython/qemu/machine.py tests/acceptance/avocado_qemu/__init__.py+16 -31 reply
6/6tests/acceptance/virtio-gpu.py: preserve virtio-user-gpu logtests/acceptance/virtio-gpu.py+3 -22 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéWainer dos Santos MoschettaJohn Snow
1/6A-b R-b
2/6R-b
3/6R-b R-b
4/6R-b
5/6R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/6] Python / Acceptance Tests: improve logging

The location and amount of information kept while using QEMUMachine in Acceptance Tests is currently not optimal.

This improves the situation by using the Test's log directory (an Avocado standard feature) as the default location to keep logs, instead of the temporary directory currently used.

Users will be able to find "qemu-$PID.log" files under the test log directories, containing all the stdout/stderr generated by the QEMU binary.

Cleber Rosa (6):
Python: close the log file kept by QEMUMachine before reading it
Python: expose QEMUMachine's temporary directory Acceptance Tests: use the job work directory for created VMs Acceptance Tests: log information when creating QEMUMachine Acceptance Tests: distinguish between temp and logs dir tests/acceptance/virtio-gpu.py: preserve virtio-user-gpu log

 python/qemu/machine.py                    | 42 +++++++++++++++++------
 python/qemu/qtest.py                      |  6 ++--
 tests/acceptance/avocado_qemu/__init__.py | 10 ++++--
 tests/acceptance/virtio-gpu.py            |  5 +--
 tests/qemu-iotests/iotests.py             |  2 +-
 5 files changed, 45 insertions(+), 20 deletions(-)
Signature · 1 line
2.25.4