[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/9] Avocado tests: improve documentation on tag filtering
From: |
Cleber Rosa |
Subject: |
[PATCH 7/9] Avocado tests: improve documentation on tag filtering |
Date: |
Fri, 25 Feb 2022 16:01:54 -0500 |
It's possible to filter based on a combination of criteria. This adds
examples to the documentation.
Signed-off-by: Cleber Rosa <crosa@redhat.com>
---
docs/devel/testing.rst | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst
index 92d40cdd19..f5b6e07b5c 100644
--- a/docs/devel/testing.rst
+++ b/docs/devel/testing.rst
@@ -936,6 +936,28 @@ in the current directory, tagged as "quick", run:
avocado run -t quick .
+To run tests with a given value for a given tag, such as having the
+``accel`` tag set to ``kvm``, run:
+
+.. code::
+
+ avocado run -t accel:kvm .
+
+Multiple mandatory conditions can also be given. To run only tests
+with ``arch`` set to ``x86_64`` and ``accell`` set to ``kvm``, run:
+
+.. code::
+
+ avocado run -t arch:x86_64,accel:kvm .
+
+It's also possible to exclude tests that contain a given value for a
+tag. To list all tests that do *not* have ``arch`` set to ``x86_64``,
+run:
+
+.. code::
+
+ avocado run -t arch:-x86_64 .
+
The ``avocado_qemu.Test`` base test class
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--
2.35.1
- Re: [PATCH 2/9] Avocado tests: use logging namespace that is preserved in test logs, (continued)
- [PATCH 3/9] Avocado migration test: adapt to "utils.network" API namespace change, Cleber Rosa, 2022/02/25
- [PATCH 4/9] Avocado: bump to version 95.0, Cleber Rosa, 2022/02/25
- [PATCH 5/9] tests/avocado/linux_ssh_mips_malta.py: add missing accel (tcg) tag, Cleber Rosa, 2022/02/25
- [PATCH 6/9] tests/avocado/virtiofs_submounts.py: shared_dir may not exist, Cleber Rosa, 2022/02/25
- [PATCH 7/9] Avocado tests: improve documentation on tag filtering,
Cleber Rosa <=
- [PATCH 9/9] Avocado tests: don't run tests with TCG that boot full blown distros, Cleber Rosa, 2022/02/25
- [PATCH 8/9] Avocado tests: classify tests based on what it's booted, Cleber Rosa, 2022/02/25