aboutsummaryrefslogtreecommitdiff
path: root/tools/buildman/main.py
diff options
context:
space:
mode:
authorSimon Glass2022-01-22 05:07:29 -0700
committerTom Rini2022-02-08 23:07:59 -0500
commit433fa549e138a06085fe3a9a0ac4924bb1804687 (patch)
tree07b0a52d4688e94d104d848e324d9f12e1215bde /tools/buildman/main.py
parent1d0f30e936d2fabbbaa34c3904369252d54a56cc (diff)
buildman: Add a flag to control the traceback
At present the full horror of the Python traceback is shown by default. It is normally only useful for debugging. Turn it off by default and add a --debug flag to enable it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/main.py')
-rwxr-xr-xtools/buildman/main.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/buildman/main.py b/tools/buildman/main.py
index 2b714739a20..04698ce9e50 100755
--- a/tools/buildman/main.py
+++ b/tools/buildman/main.py
@@ -54,6 +54,9 @@ def RunTests(skip_net_tests):
options, args = cmdline.ParseArgs()
+if not options.debug:
+ sys.tracebacklimit = 0
+
# Run our meagre tests
if options.test:
RunTests(options.skip_net_tests)