[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 07/24] tests/functional: Convert avocado tests that just n
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v3 07/24] tests/functional: Convert avocado tests that just need a small adjustment |
Date: |
Wed, 31 Jul 2024 14:55:23 +0200 |
User-agent: |
Mozilla Thunderbird |
On 30/7/24 19:03, Daniel P. Berrangé wrote:
From: Thomas Huth <thuth@redhat.com>
These simple tests can be converted to stand-alone tests quite easily,
e.g. by just setting the machine to 'none' now manually or by adding
"-cpu" command line parameters, since we don't support the corresponding
avocado tags in the new python test framework.
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
tests/functional/meson.build | 6 ++
.../test_info_usernet.py} | 11 ++-
.../test_ppc_74xx.py} | 74 ++++++++-----------
.../version.py => functional/test_version.py} | 13 ++--
4 files changed, 53 insertions(+), 51 deletions(-)
rename tests/{avocado/info_usernet.py => functional/test_info_usernet.py}
(87%)
mode change 100644 => 100755
rename tests/{avocado/ppc_74xx.py => functional/test_ppc_74xx.py} (74%)
mode change 100644 => 100755
rename tests/{avocado/version.py => functional/test_version.py} (78%)
mode change 100644 => 100755
Please squash:
-- >8 --
diff --git a/MAINTAINERS b/MAINTAINERS
index 98eddf7ae1..a906218f9d 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -317,6 +317,7 @@ F: configs/devices/ppc*
F: docs/system/ppc/embedded.rst
F: docs/system/target-ppc.rst
F: tests/tcg/ppc*/*
+F: tests/functional/test_ppc_74xx.py
RISC-V TCG CPUs
M: Palmer Dabbelt <palmer@dabbelt.com>
@@ -2101,6 +2108,7 @@ S: Odd Fixes
F: hw/net/
F: include/hw/net/
F: tests/qtest/virtio-net-test.c
+F: tests/avocado/info_usernet.py
F: docs/virtio-net-failover.rst
T: git https://github.com/jasowang/qemu.git net
@@ -2969,6 +2978,7 @@ S: Supported
F: include/qemu/option.h
F: tests/unit/test-keyval.c
F: tests/unit/test-qemu-opts.c
+F: tests/functional/test_version.py
F: util/keyval.c
F: util/qemu-option.c
diff --git a/tests/functional/test_info_usernet.py
b/tests/functional/test_info_usernet.py
index ded973253a..cd37524d94 100755
--- a/tests/functional/test_info_usernet.py
+++ b/tests/functional/test_info_usernet.py
@@ -19,7 +19,7 @@ class InfoUsernet(QemuSystemTest):
def test_hostfwd(self):
self.require_netdev('user')
- self.machine = 'none'
+ self.set_machine('none')
self.vm.add_args('-netdev',
'user,id=vnet,hostfwd=:127.0.0.1:0-:22')
self.vm.launch()
res = self.vm.cmd('human-monitor-command',
diff --git a/tests/functional/test_version.py
b/tests/functional/test_version.py
index 5e566d76b1..3ab3b67f7e 100755
--- a/tests/functional/test_version.py
+++ b/tests/functional/test_version.py
@@ -17,7 +17,7 @@
class Version(QemuSystemTest):
def test_qmp_human_info_version(self):
- self.machine = 'none'
+ self.set_machine('none')
self.vm.add_args('-nodefaults')
self.vm.launch()
res = self.vm.cmd('human-monitor-command',
---
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
- [PATCH v3 00/24] Convert avocado tests to normal Python unittests, Daniel P . Berrangé, 2024/07/30
- [PATCH v3 03/24] tests/functional: Set up logging, Daniel P . Berrangé, 2024/07/30
- [PATCH v3 01/24] python: Install pycotap in our venv if necessary, Daniel P . Berrangé, 2024/07/30
- [PATCH v3 02/24] tests/functional: Add base classes for the upcoming pytest-based tests, Daniel P . Berrangé, 2024/07/30
- [PATCH v3 05/24] tests/functional: Prepare the meson build system for the functional tests, Daniel P . Berrangé, 2024/07/30
- [PATCH v3 08/24] tests/functional: add a module for handling asset download & caching, Daniel P . Berrangé, 2024/07/30
- [PATCH v3 07/24] tests/functional: Convert avocado tests that just need a small adjustment, Daniel P . Berrangé, 2024/07/30
- Re: [PATCH v3 07/24] tests/functional: Convert avocado tests that just need a small adjustment,
Philippe Mathieu-Daudé <=
- [PATCH v3 06/24] tests/functional: Convert simple avocado tests into standalone python tests, Daniel P . Berrangé, 2024/07/30
- [PATCH v3 04/24] tests/Makefile.include: Increase the level of indentation in the help text, Daniel P . Berrangé, 2024/07/30
- [PATCH v3 09/24] tests/functional: enable pre-emptive caching of assets, Daniel P . Berrangé, 2024/07/30
- [PATCH v3 10/24] tests/functional: Convert some tests that download files via fetch_asset(), Daniel P . Berrangé, 2024/07/30
- [PATCH v3 11/24] tests/functional: Add a function for extracting files from an archive, Daniel P . Berrangé, 2024/07/30
- [PATCH v3 12/24] tests/functional: Convert some avocado tests that needed avocado.utils.archive, Daniel P . Berrangé, 2024/07/30
- [PATCH v3 13/24] tests/functional: Convert the s390x avocado tests into standalone tests, Daniel P . Berrangé, 2024/07/30