mbox series

[0/6] Python / Acceptance Tests: improve logging

Message ID 20210211220146.2525771-1-crosa@redhat.com (mailing list archive)
Headers show
Series Python / Acceptance Tests: improve logging | expand

Message

Cleber Rosa Feb. 11, 2021, 10:01 p.m. UTC
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(-)