summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-10-05 17:16:23 -0400
committerTom Rini <trini@konsulko.com>2021-10-05 17:16:23 -0400
commit7240e1b8f94a56db88a2af688cad27e2e6545302 (patch)
tree00e07de1f4b83cf96f183b881e80cd273dabd892 /doc
parent50c84208ad50a27382c64af911abba4510a8b608 (diff)
parentc3ef4550a2c439e9726205769d4381ed7e7fbc3d (diff)
downloadu-boot-7240e1b8f94a56db88a2af688cad27e2e6545302.tar.gz
u-boot-7240e1b8f94a56db88a2af688cad27e2e6545302.tar.bz2
u-boot-7240e1b8f94a56db88a2af688cad27e2e6545302.zip
Merge branch '2021-10-05-general-updates'
- Assorted OPTEE cleanups - pinctrl, gpio improvements, assorted livetree migrations - Assorted pytest improvements
Diffstat (limited to 'doc')
-rw-r--r--doc/develop/py_testing.rst30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/develop/py_testing.rst b/doc/develop/py_testing.rst
index c4cecc0a01..4f1e1f66e7 100644
--- a/doc/develop/py_testing.rst
+++ b/doc/develop/py_testing.rst
@@ -103,6 +103,36 @@ will be written to `${build_dir}/test-log.html`. This is best viewed in a web
browser, but may be read directly as plain text, perhaps with the aid of the
`html2text` utility.
+Running tests in parallel
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Note: This does not fully work yet and is documented only so you can try to
+fix the problems.
+
+First install support for parallel tests::
+
+ pip3 install pytest-xdist
+
+Then build sandbox in a suitable build directory. It is not possible to use
+the --build flag with xdist.
+
+Finally, run the tests in parallel using the -n flag::
+
+ # build sandbox first, in a suitable build directory. It is not possible
+ # to use the --build flag with -n
+ test/py/test.py -B sandbox --build-dir /tmp/b/sandbox -q -k 'not slow' -n32
+
+At least the following non-slow tests are known to fail:
+
+- test_fit_ecdsa
+- test_bind_unbind_with_uclass
+- ut_dm_spi_flash
+- test_gpt_rename_partition
+- test_gpt_swap_partitions
+- test_pinmux_status
+- test_sqfs_load
+
+
Testing under a debugger
~~~~~~~~~~~~~~~~~~~~~~~~