@@ -278,7 +278,7 @@ added.
278278 ``broken `` attribute and raise a ``StrategyError `` for the original and all
279279 subsequent calls to the decorated methods.
280280
281- Lets take a look at the builtin `BareboxStrategy `.
281+ Lets take a look at the builtin :ref: `BareboxStrategy < conf-bareboxstrategy > `.
282282The Status enum for the BareboxStrategy:
283283
284284::
@@ -289,7 +289,7 @@ The Status enum for the BareboxStrategy:
289289 barebox = 2
290290 shell = 3
291291
292- defines three custom states and the `unknown ` state as the start point.
292+ defines three custom states and the `` unknown ` ` state as the start point.
293293These three states are handled in the transition function:
294294
295295::
@@ -312,13 +312,13 @@ These three states are handled in the transition function:
312312 self.barebox.await_boot()
313313 self.target.activate(self.shell)
314314
315- Here, the `barebox ` state simply cycles the board and activates the driver,
316- while the `shell ` state uses the barebox state to cycle the board and then boot
315+ Here, the `` barebox ` ` state simply cycles the board and activates the driver,
316+ while the `` shell ` ` state uses the barebox state to cycle the board and then boot
317317the linux kernel.
318- The `off ` state switches the power off.
318+ The `` off ` ` state switches the power off.
319319
320320Oftentimes it is also necessary to wait for specific resources to appear before
321- a transition can be continued. The `await_resources ` function of the target
321+ a transition can be continued. The `` await_resources() ` ` function of the target
322322implements this functionality, it expects a list of resources to wait for and
323323optionally takes a timeout and whether the resource should be available or
324324unavailable.
@@ -514,32 +514,33 @@ A transition describes a path, or a part of a path, through a GraphStrategy
514514graph.
515515Every State in the graph has a auto generated default path starting from the
516516root state.
517- So using the given example, the GraphStrategy would call the states `unknown `,
518- `boot_via_nand `, `barebox `, and `linux_shell ` in this order if
517+ So using the given example, the GraphStrategy would call the states `` unknown ` `,
518+ `` boot_via_nand `` , `` barebox `` , and `` linux_shell ` ` in this order if
519519``transition('linux_shell') `` would be called.
520- The GraphStrategy would prefer `boot_via_nand ` over `boot_via_nfs ` because
521- `boot_via_nand ` is mentioned before `boot_via_nfs ` in the dependencies of
522- `barebox `. If you want to reach via `boot_via_nfs ` the call would look like
520+ The GraphStrategy would prefer `` boot_via_nand `` over `` boot_via_nfs ` ` because
521+ `` boot_via_nand `` is mentioned before `` boot_via_nfs ` ` in the dependencies of
522+ `` barebox `` . If you want to reach via `` boot_via_nfs ` ` the call would look like
523523this: ``transition('linux_shell', via='boot_via_nfs') ``.
524524
525525A transition can be incremental. If we trigger a transition with
526- ``transition('barebox') `` first, the states `unknown `, `boot_via_nand ` and
527- `barebox ` will be called in this order. If we trigger a transition
528- ``transition('linux_shell') `` afterwards only `linux_shell ` gets called. This
529- happens because `linux_shell ` is reachable from `barebox ` and the Strategy
526+ ``transition('barebox') `` first, the states `` unknown `` , `` boot_via_nand ` ` and
527+ `` barebox ` ` will be called in this order. If we trigger a transition
528+ ``transition('linux_shell') `` afterwards only `` linux_shell ` ` gets called. This
529+ happens because `` linux_shell `` is reachable from `` barebox ` ` and the Strategy
530530holds state of the last walked path.
531531But there is a catch! The second, incremental path must be *fully * incremental
532532to the previous path!
533- For example: Lets say we reached `barebox ` via `boot_via_nfs `,
533+ For example: Lets say we reached `` barebox `` via `` boot_via_nfs ` `,
534534(``transition('barebox', via='boot_via_nfs') ``). If we trigger
535535``transition('linux_shell') `` afterwards the GraphStrategy would compare the last
536- path `'unknown', 'boot_via_nfs', 'barebox' ` with the default path to
537- `linux_shell ` which would be
538- `'unknown', 'boot_via_nand', 'barebox', 'linux_shell' `, and decides the path
536+ path `` 'unknown', 'boot_via_nfs', 'barebox' ` ` with the default path to
537+ `` linux_shell ` ` which would be
538+ `` 'unknown', 'boot_via_nand', 'barebox', 'linux_shell' ` `, and decides the path
539539is not fully incremental and starts over by the root state. If we had given
540- the second transition `boot_via_nfs ` like in the first transition the paths
540+ the second transition `` boot_via_nfs ` ` like in the first transition the paths
541541had been incremental.
542542
543+ .. _sshmanager :
543544
544545SSHManager
545546----------
@@ -577,7 +578,7 @@ or get and put files:
577578
578579ManagedFile
579580-----------
580- While the `SSHManager ` exposes a lower level interface to use SSH Connections,
581+ While the :ref: `SSHManager < sshmanager > ` exposes a lower level interface to use SSH Connections,
581582the ManagedFile provides a higher level interface for file upload to another
582583host. It is meant to be used in conjunction with a remote resource, and store
583584the file on the remote host with the following pattern:
@@ -586,9 +587,9 @@ the file on the remote host with the following pattern:
586587
587588 /tmp/labgrid-< username> /< sha256sum> /< filename>
588589
589- Additionally it provides `get_remote_path() ` to retrieve the complete file path,
590+ Additionally it provides `` get_remote_path() ` ` to retrieve the complete file path,
590591to easily employ it for driver implementations.
591- To use it in conjunction with a ` Resource ` and a file:
592+ To use it in conjunction with a * Resource * and a file:
592593
593594.. testsetup :: managed-file
594595
@@ -607,7 +608,7 @@ To use it in conjunction with a `Resource` and a file:
607608 >>> mf.sync_to_resource()
608609 >>> path = mf.get_remote_path()
609610
610- Unless constructed with `ManagedFile(..., detect_nfs=False) `, ManagedFile
611+ Unless constructed with `` ManagedFile(..., detect_nfs=False) ` `, ManagedFile
611612employs the following heuristic to check if a file is stored on a NFS share
612613available both locally and remotely via the same path:
613614
@@ -624,7 +625,7 @@ ProxyManager
624625The proxymanager is used to open connections across proxies via an attribute in
625626the resource. This allows gated testing networks by always using the exporter as
626627an SSH gateway to proxy the connections using SSH Forwarding. Currently this is
627- used in the `SerialDriver ` for proxy connections.
628+ used in the :any: `SerialDriver ` for proxy connections.
628629
629630Usage:
630631
@@ -662,8 +663,8 @@ Workflow
662663- Changes should be submitted via a `GitHub pull request
663664 <https://github.com/labgrid-project/labgrid/pulls> `_.
664665- Try to limit each commit to a single conceptual change.
665- - Add a signed-of-by line to your commits according to the ` Developer's
666- Certificate of Origin ` (see below).
666+ - Add a signed-of-by line to your commits according to the * Developer's
667+ Certificate of Origin * (see below).
667668- Check that the tests still work before submitting the pull request. Also
668669 check the CI's feedback on the pull request after submission.
669670- When adding new drivers or resources, please also add the corresponding
0 commit comments