Skip to content

Commit a26b0d5

Browse files
doc: configuration: test examples via doctest
Signed-off-by: Bastian Krause <bst@pengutronix.de>
1 parent 78479fe commit a26b0d5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

doc/configuration.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2814,14 +2814,14 @@ StepReporter
28142814
~~~~~~~~~~~~
28152815
The StepReporter outputs individual labgrid steps to `STDOUT`.
28162816

2817-
::
2817+
.. doctest::
28182818

28192819
>>> from labgrid import StepReporter
28202820
>>> StepReporter.start()
28212821

28222822
The Reporter can be stopped with a call to the stop function:
28232823

2824-
::
2824+
.. doctest::
28252825

28262826
>>> from labgrid import StepReporter
28272827
>>> StepReporter.stop()
@@ -2839,14 +2839,14 @@ ConsoleLoggingReporter
28392839
The ConsoleLoggingReporter outputs read calls from the console transports into
28402840
files. It takes the path as a parameter.
28412841

2842-
::
2842+
.. doctest::
28432843

28442844
>>> from labgrid import ConsoleLoggingReporter
28452845
>>> ConsoleLoggingReporter.start(".")
28462846

28472847
The Reporter can be stopped with a call to the stop function:
28482848

2849-
::
2849+
.. doctest::
28502850

28512851
>>> from labgrid import ConsoleLoggingReporter
28522852
>>> ConsoleLoggingReporter.stop()

0 commit comments

Comments
 (0)