diff options
author | Tom Rini <trini@konsulko.com> | 2022-02-09 09:29:07 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-02-09 09:29:07 -0500 |
commit | 859703251251d9567f29ab10c0a29f98eb0aff5c (patch) | |
tree | e0863f7cced9c153b8b083575d52faec05fae8d7 /tools/buildman/main.py | |
parent | 531c00894577a0a852431adf61ade76925f8b162 (diff) | |
parent | cccc4ab86f5e64ea6fe1e79b3ca2453baa049120 (diff) |
Merge branch '2022-02-08-Kconfig-updates'
- Assorted general code cleanups to make sure we use the right macros
and use them correctly and buildman updates around kconfig.h itself.
- Convert some IDE and SCSI symbols to Kconfig.
- Convert CONFIG_REMAKE_ELF
- Introduce conversion deadline for DM_SCSI.
Diffstat (limited to 'tools/buildman/main.py')
-rwxr-xr-x | tools/buildman/main.py | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/tools/buildman/main.py b/tools/buildman/main.py index 2b714739a2..c6af311a69 100755 --- a/tools/buildman/main.py +++ b/tools/buildman/main.py @@ -27,36 +27,35 @@ from buildman import toolchain from patman import patchstream from patman import gitutil from patman import terminal +from patman import test_util -def RunTests(skip_net_tests): +def RunTests(skip_net_tests, verboose, args): import func_test import test import doctest result = unittest.TestResult() - for module in ['buildman.toolchain', 'patman.gitutil']: - suite = doctest.DocTestSuite(module) - suite.run(result) - - sys.argv = [sys.argv[0]] + test_name = args and args[0] or None if skip_net_tests: test.use_network = False - for module in (test.TestBuild, func_test.TestFunctional): - suite = unittest.TestLoader().loadTestsFromTestCase(module) - suite.run(result) - print(result) - for test, err in result.errors: - print(err) - for test, err in result.failures: - print(err) + # Run the entry tests first ,since these need to be the first to import the + # 'entry' module. + test_util.RunTestSuites( + result, False, verboose, False, None, test_name, [], + [test.TestBuild, func_test.TestFunctional, + 'buildman.toolchain', 'patman.gitutil']) + return test_util.ReportResult('buildman', test_name, result) options, args = cmdline.ParseArgs() +if not options.debug: + sys.tracebacklimit = 0 + # Run our meagre tests if options.test: - RunTests(options.skip_net_tests) + RunTests(options.skip_net_tests, options.verbose, args) # Build selected commits for selected boards else: |