]> git.proxmox.com Git - mirror_qemu.git/commit - tests/avocado/acpi-bits.py
acpi/tests/avocado/bits: keep the work directory when BITS_DEBUG is set in env
authorAni Sinha <ani@anisinha.ca>
Thu, 17 Nov 2022 11:36:30 +0000 (17:06 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 22 Nov 2022 10:19:00 +0000 (05:19 -0500)
commit04e5bd441a9c60d21d38beb1b2b52ce12830cb99
tree9e6b311e0b55d37d87954290f101a6f565e4b084
parentc4d4c40c516a52419be8ed2e1e7a7c1fd0dea3ee
acpi/tests/avocado/bits: keep the work directory when BITS_DEBUG is set in env

Debugging bits issue often involves running the QEMU command line manually
outside of the avocado environment with the generated ISO. Hence, its
inconvenient if the iso gets cleaned up after the test has finished. This change
makes sure that the work directory is kept after the test finishes if the test
is run with BITS_DEBUG=1 in the environment so that the iso is available for use
with the QEMU command line.

CC: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Ani Sinha <ani@anisinha.ca>
Message-Id: <20221117113630.543495-1-ani@anisinha.ca>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/avocado/acpi-bits.py