diff options
author | Simon Glass <sjg@chromium.org> | 2021-10-06 05:18:00 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-10-15 02:45:07 +0300 |
commit | b04f64aa48eeaf099fe52c28c512f956690f5eec (patch) | |
tree | 96063b582673b9459a8dc9976f5db6a3458943be /test | |
parent | 927e0eedfcd8f773fc89da1a750ea191aa94492c (diff) | |
download | u-boot-b04f64aa48eeaf099fe52c28c512f956690f5eec.tar.xz |
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 'test')
-rwxr-xr-x | test/py/test.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/py/test.py b/test/py/test.py index 285fda5425..95859a66e2 100755 --- a/test/py/test.py +++ b/test/py/test.py @@ -17,4 +17,9 @@ if __name__ == '__main__': # argv; py.test test_directory_name user-supplied-arguments args = [os.path.dirname(__file__) + '/tests'] args.extend(sys.argv) + + # Use short format by default + if not [arg for arg in args if '--tb=' in arg]: + args.append('--tb=short') + sys.exit(pytest.main(args)) |