Python: expose QEMUMachine's temporary directory
commit2ca6e26cea73fa1d270f73392e8b87f3e67e6a2b
authorCleber Rosa <crosa@redhat.com>
Thu, 11 Feb 2021 22:01:42 +0000 (11 17:01 -0500)
committerJohn Snow <jsnow@redhat.com>
Tue, 1 Jun 2021 20:21:20 +0000 (1 16:21 -0400)
tree5b1a56b7b4dc23e3ff86ebcf08afcf5433bf13bd
parent52848929b70dcf92a68aedcfd90207be81ba3274
Python: expose QEMUMachine's temporary directory

Each instance of qemu.machine.QEMUMachine currently has a "test
directory", which may not have any relation to a "test", and it's
really a temporary directory.

Users instantiating the QEMUMachine class will be able to set the
location of the directory that will *contain* the QEMUMachine unique
temporary directory, so that parameter name has been changed from
test_dir to base_temp_dir.

A property has been added to allow users to access it without using
private attributes, and with that, the directory is created on first
use of the property.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20210211220146.2525771-3-crosa@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/machine.py
python/qemu/qtest.py
tests/qemu-iotests/iotests.py