doc: pytest: Document the test_bootmenu test
authorTom Rini <trini@konsulko.com>
Thu, 8 May 2025 21:34:44 +0000 (15:34 -0600)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 11 May 2025 10:52:57 +0000 (12:52 +0200)
Add this test to the documentation. There was already a function comment
that included the argument, so convert it to the right style to be
rendered correctly in output.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
doc/develop/pytest/index.rst
doc/develop/pytest/test_bootmenu.rst [new file with mode: 0644]
test/py/tests/test_bootmenu.py

index cd6eb5f..4d949cf 100644 (file)
@@ -19,6 +19,7 @@ Individual tests
 
    test_000_version
    test_bind
+   test_bootmenu
    test_bootstage
    test_efi_loader
    test_net
diff --git a/doc/develop/pytest/test_bootmenu.rst b/doc/develop/pytest/test_bootmenu.rst
new file mode 100644 (file)
index 0000000..e2ff5c4
--- /dev/null
@@ -0,0 +1,8 @@
+test_bootmenu
+=============
+
+.. automodule:: test_bootmenu
+   :synopsis:
+   :member-order: bysource
+   :members:
+   :undoc-members:
index 66f3fb8..be8257f 100644 (file)
@@ -8,9 +8,9 @@ import pytest
 def test_bootmenu(ubman):
     """Test bootmenu
 
-    ubman -- U-Boot console
+    Args:
+        ubman: U-Boot console
     """
-
     with ubman.temporary_timeout(500):
         ubman.run_command('setenv bootmenu_default 1')
         ubman.run_command('setenv bootmenu_0 test 1=echo ok 1')