You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usages/expecting.rst
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,14 +186,14 @@ As with the :func:`~pytest_embedded.dut.Dut.expect` function, the ``pattern`` ar
186
186
for _ inrange(2):
187
187
dut.expect_exact(pattern_list)
188
188
189
-
*****************************
189
+
***************************
190
190
Multi-DUT Synchronization
191
-
*****************************
191
+
***************************
192
192
193
193
When you use ``--count N`` (or equivalent), each board has its own serial stream and its own :class:`~pytest_embedded.dut.Dut` instance. Waiting for readiness on each device with separate ``expect`` calls works, but:
194
194
195
-
- Sequential calls use **per-call** timeouts, so two ``expect_exact(..., timeout=120)`` lines can behave like a much larger wall-clock budget than a single 120s deadline.
196
-
- The **slowest** device should not delay matching on others more than your chosen global timeout.
195
+
- Sequential calls use **per-call** timeouts, so two ``expect_exact(..., timeout=120)`` lines can behave like a much larger wall-clock budget than a single 120s deadline.
196
+
- The **slowest** device should not delay matching on others more than your chosen global timeout.
197
197
198
198
:class:`~pytest_embedded.group.DutGroup`
199
199
========================================
@@ -214,8 +214,7 @@ It is also available as ``Dut.DutGroup`` for discoverability.
214
214
expect / expect_exact
215
215
---------------------
216
216
217
-
``expect`` and ``expect_exact`` support both **broadcast** (one pattern for all
218
-
DUTs) and **per-DUT** patterns (N patterns for N DUTs), all running in parallel:
217
+
``expect`` and ``expect_exact`` support both **broadcast** (one pattern for all DUTs) and **per-DUT** patterns (N patterns for N DUTs), all running in parallel:
219
218
220
219
.. code:: python
221
220
@@ -236,8 +235,7 @@ DUTs) and **per-DUT** patterns (N patterns for N DUTs), all running in parallel:
236
235
Other methods
237
236
-------------
238
237
239
-
Any other :class:`~pytest_embedded.dut.Dut` method called on the group is
240
-
forwarded with the **same arguments** to every DUT in parallel:
238
+
Any other :class:`~pytest_embedded.dut.Dut` method called on the group is forwarded with the **same arguments** to every DUT in parallel:
0 commit comments