mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
patman: Avoid importing test_checkpatch before it is needed
Tests are not packaged with patman so this file will not be accessible when installing with pip. Move the import later in the file, when we know the file is present. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
75554dfac2
commit
a545dc1db9
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,6 @@ from patman import func_test
|
|||
from patman import gitutil
|
||||
from patman import project
|
||||
from patman import settings
|
||||
from patman import test_checkpatch
|
||||
from u_boot_pylib import terminal
|
||||
from u_boot_pylib import test_util
|
||||
from u_boot_pylib import tools
|
||||
|
@ -146,6 +145,7 @@ if not args.debug:
|
|||
# Run our meagre tests
|
||||
if args.cmd == 'test':
|
||||
from patman import func_test
|
||||
from patman import test_checkpatch
|
||||
|
||||
result = test_util.run_test_suites(
|
||||
'patman', False, False, False, None, None, None,
|
||||
|
|
Loading…
Add table
Reference in a new issue