diff options
| author | Simon Glass <sjg@chromium.org> | 2024-11-08 08:23:43 -0700 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2024-11-19 10:04:47 -0600 |
| commit | 6d66ded18ea2167834e3108a6ba5271ace532966 (patch) | |
| tree | e67a00fb0204b4f68796f11bf4da7a3901c4adfc /tools/buildman | |
| parent | a63fcdb9a44b786e8a2ea0653356b092b8ac63e6 (diff) | |
buildman: Set up the tout library
Use this to control info and debugging messages. Enable them if -v is
given.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman')
| -rwxr-xr-x | tools/buildman/main.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/buildman/main.py b/tools/buildman/main.py index 3cf877e5e68..a948f36d9c0 100755 --- a/tools/buildman/main.py +++ b/tools/buildman/main.py @@ -25,6 +25,7 @@ from buildman import cmdline from buildman import control from u_boot_pylib import test_util from u_boot_pylib import tools +from u_boot_pylib import tout def run_tests(skip_net_tests, debug, verbose, args): """Run the buildman tests @@ -93,8 +94,12 @@ def run_buildman(): # Build selected commits for selected boards else: - bsettings.setup(args.config_file) - ret_code = control.do_buildman(args) + try: + tout.init(tout.INFO if args.verbose else tout.WARNING) + bsettings.setup(args.config_file) + ret_code = control.do_buildman(args) + finally: + tout.uninit() return ret_code |
