Skip to content

Commit 25afa00

Browse files
committed
docs: get targets filtered by soc attrs
1 parent 0b95fc8 commit 25afa00

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/usages/markers.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,23 @@ Another way to override ``supported_targets`` and ``preview_targets`` is by usin
152152
- - esp32s3
153153
- psram
154154

155+
SOC Related Targets
156+
-------------------
157+
158+
If you need to retrieve targets filtered by a specific SOC attribute, you can use the ``soc_filtered_targets`` function.
159+
160+
This function processes both ``supported`` and ``preview`` targets, applies the specified filter, and returns a list of targets that match the given SOC attribute.
161+
162+
**Example:**
163+
164+
.. code:: python
165+
166+
from pytest_embedded_idf.utils import soc_filtered_targets
167+
168+
@idf_parametrize('target', soc_filtered_targets('SOC_ULP_SUPPORTED != 1'), indirect=['target'])
169+
def test_ulp_supported_targets(case_tester) -> None:
170+
pass
171+
155172
Markers
156173
-------
157174

0 commit comments

Comments
 (0)