summaryrefslogtreecommitdiff
path: root/doc/develop
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-10-05 20:18:00 -0600
committerTom Rini <trini@konsulko.com>2021-10-14 19:45:07 -0400
commitb04f64aa48eeaf099fe52c28c512f956690f5eec (patch)
tree96063b582673b9459a8dc9976f5db6a3458943be /doc/develop
parent927e0eedfcd8f773fc89da1a750ea191aa94492c (diff)
downloadu-boot-b04f64aa48eeaf099fe52c28c512f956690f5eec.tar.gz
u-boot-b04f64aa48eeaf099fe52c28c512f956690f5eec.tar.bz2
u-boot-b04f64aa48eeaf099fe52c28c512f956690f5eec.zip
pytest: Shorten traceback length by default
This produces a lot of code output which is not very helpful and is quite annoying to wade through. Use the short format by default. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc/develop')
-rw-r--r--doc/develop/py_testing.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/develop/py_testing.rst b/doc/develop/py_testing.rst
index 4f1e1f66e7..52238ca54d 100644
--- a/doc/develop/py_testing.rst
+++ b/doc/develop/py_testing.rst
@@ -103,6 +103,13 @@ 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.
+Controlling output
+~~~~~~~~~~~~~~~~~~
+
+By default a short backtrace is reported. If you would like a longer one,
+pass ``--tb=long`` when running the test. See the pytest documentation for
+more options.
+
Running tests in parallel
~~~~~~~~~~~~~~~~~~~~~~~~~