summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-07-19 17:48:10 -0600
committerSimon Glass <sjg@chromium.org>2023-07-24 09:34:10 -0600
commiteadbfa6b0870de3bf6639dd6c3864a2ed5ac2aa9 (patch)
tree30ae32fb83021611ee7f2b421a9b7e9e6eedea73
parent2ef22f8e68f4b31b729a85d0df57da051020c49a (diff)
buildman: Allow --debug to enable debugging
The -D option is used, but plumb it through --debug to enable a full traceback when something goes wrong. Signed-off-by: Simon Glass <sjg@chromium.org>
-rwxr-xr-xtools/buildman/main.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/buildman/main.py b/tools/buildman/main.py
index a2ffbc9073e..5cbdce7cf34 100755
--- a/tools/buildman/main.py
+++ b/tools/buildman/main.py
@@ -28,11 +28,12 @@ from patman import gitutil
from u_boot_pylib import terminal
from u_boot_pylib import test_util
-def RunTests(skip_net_tests, verbose, args):
+def RunTests(skip_net_tests, debug, verbose, args):
"""Run the buildman tests
Args:
skip_net_tests (bool): True to skip tests which need the network
+ debug (bool): True to run in debugging mode (full traceback)
verbosity (int): Verbosity level to use (0-4)
args (list of str): List of tests to run, empty to run all
"""
@@ -47,7 +48,7 @@ def RunTests(skip_net_tests, verbose, args):
# Run the entry tests first ,since these need to be the first to import the
# 'entry' module.
result = test_util.run_test_suites(
- 'buildman', False, verbose, False, None, test_name, [],
+ 'buildman', debug, verbose, False, None, test_name, [],
[test.TestBuild, func_test.TestFunctional,
'buildman.toolchain', 'patman.gitutil'])
@@ -61,7 +62,7 @@ def run_buildman():
# Run our meagre tests
if cmdline.HAS_TESTS and options.test:
- RunTests(options.skip_net_tests, options.verbose, args)
+ RunTests(options.skip_net_tests, options.debug, options.verbose, args)
# Build selected commits for selected boards
else: