tests/functional: put QEMUMachine logs in testcase log directory
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 21 Nov 2024 16:57:36 +0000 (16:57 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 25 Nov 2024 10:06:20 +0000 (10:06 +0000)
commite6d69e0f3b83b7c60d024f41f5eaf130755b090c
tree023fed6e9acb5b0bd555cdaebfb197465a160607
parent03d6c237ccd98f2873d1dc59287f163ad0eb83ee
tests/functional: put QEMUMachine logs in testcase log directory

We are not passing the 'log_dir' parameter to QEMUMachine, so the
QEMU stdout/err logs are being placed in a temp directory and thus
deleted after execution. This makes them inaccessible as gitlab
CI artifacts.

Pass the testcase log directory path into QEMUMachine to make the
logs persistent.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20241121154218.1423005-10-berrange@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20241121165806.476008-10-alex.bennee@linaro.org>
tests/functional/qemu_test/testcase.py