summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-02-24 04:18:07 +0300
committerSimon Glass <sjg@chromium.org>2023-03-08 22:40:49 +0300
commita545dc1db91bfe9ba04d39c27070cabdbafa6111 (patch)
tree18d1bcb7e4aaab3d75ec88960e3fe08afcf47d92
parent75554dfac298f86038124b2fb133fd40cbbaa29c (diff)
downloadu-boot-a545dc1db91bfe9ba04d39c27070cabdbafa6111.tar.xz
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>
-rwxr-xr-xtools/patman/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/__main__.py b/tools/patman/__main__.py
index 30632559bb..48ffbc8ead 100755
--- a/tools/patman/__main__.py
+++ b/tools/patman/__main__.py
@@ -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,