You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/tests/functional/qemu_test
Gustavo Romero 0ac3c31413 tests/functional: Mark main in QemuBaseTest class as a static method
The main() method in the QemuBaseTest class has no parameters but is
defined as a regular method. Currently, this does not cause any issues
because in the functional tests main() is always called directly from
QemuBaseTest (never from instances), but the way this method is defined
makes its signature wrong, implying a 'self'. Hence, it's best practice
to define such a method as a static method, so decorate it with
@staticmethod.

Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
Message-ID: <20250819143916.4138035-4-gustavo.romero@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2 weeks ago
..
__init__.py tests/functional: add skipLockedMemoryTest decorator 3 months ago
archive.py tests/functional: replace 'run_cmd' with subprocess helpers 9 months ago
asset.py tests/functional/asset: Add AssetError exception class 6 months ago
cmd.py tests/functional: remove now unused 'run_cmd' helper 9 months ago
config.py tests/functional: Introduce the dso_suffix() helper 6 months ago
decorators.py tests/functional: add skipLockedMemoryTest decorator 3 months ago
linuxkernel.py tests/functional: Move the code for testing HTTP downloads to a common function 6 months ago
ports.py tests/functional: Use more fine-grained locking when looking for free ports 2 weeks ago
tesseract.py tests/functional: replace 'run_cmd' with subprocess helpers 9 months ago
testcase.py tests/functional: Mark main in QemuBaseTest class as a static method 2 weeks ago
tuxruntest.py tests/functional: Remove unnecessary import statements 5 months ago
uncompress.py tests/functional: Remove unnecessary import statements 5 months ago
utils.py tests/functional: Add a helper function for retrieving the hostfwd port 9 months ago