]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/functional: add helpers for building file paths
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 17 Dec 2024 15:59:31 +0000 (15:59 +0000)
committerThomas Huth <thuth@redhat.com>
Tue, 17 Dec 2024 18:39:53 +0000 (19:39 +0100)
commitf84f8e71eb4bdd193e89c6550a015277b686b0af
treeb80043c05af28629c3460d0d939b4f62e2032d7e
parent9132fff802431438a2805389e74402321fb9afed
tests/functional: add helpers for building file paths

Add helper methods that construct paths for

 * log files - to be preserved at the end of a test
 * scratch files - to be purged at the end of a test
 * build files - anything relative to the build root
 * data files - anything relative to the functional test source root
 * socket files - a short temporary dir to avoid UNIX socket limits

These are to be used instead of direct access to the self.workdir,
or self.logdir variables, or any other place where paths are built
manually.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20241217155953.3950506-11-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/qemu_test/testcase.py