aboutsummaryrefslogtreecommitdiff
path: root/tools/patman/test_util.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-07-05 21:41:55 -0600
committerSimon Glass <sjg@chromium.org>2020-07-24 19:25:15 -0600
commit6bb74de7ed070a5ea44cc111939ed5bb07df5ef5 (patch)
tree9f7793fb71473d81de35ba0c8b647e028fa0ab16 /tools/patman/test_util.py
parentc4e79029e2aba29b769c9ddc6967a09cd7f5d61d (diff)
downloadu-boot-6bb74de7ed070a5ea44cc111939ed5bb07df5ef5.zip
u-boot-6bb74de7ed070a5ea44cc111939ed5bb07df5ef5.tar.gz
u-boot-6bb74de7ed070a5ea44cc111939ed5bb07df5ef5.tar.bz2
patman: Add a 'test' subcommand
At present we use --test to indicate that tests should be run. It is better to use a subcommand for list, like binman. Change it and adjust the existing code to fit under a 'send' subcommand, the default. Give this subcommand the same default arguments as the others. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/test_util.py')
-rw-r--r--tools/patman/test_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/test_util.py b/tools/patman/test_util.py
index 0827488..a87d3cc 100644
--- a/tools/patman/test_util.py
+++ b/tools/patman/test_util.py
@@ -47,7 +47,7 @@ def RunTestCoverage(prog, filter_fname, exclude_list, build_dir, required=None):
glob_list = []
glob_list += exclude_list
glob_list += ['*libfdt.py', '*site-packages*', '*dist-packages*']
- test_cmd = 'test' if 'binman' in prog else '-t'
+ test_cmd = 'test' if 'binman' in prog or 'patman' in prog else '-t'
prefix = ''
if build_dir:
prefix = 'PYTHONPATH=$PYTHONPATH:%s/sandbox_spl/tools ' % build_dir