diff options
author | Simon Glass <sjg@chromium.org> | 2025-04-10 06:42:59 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-04-11 14:29:52 -0600 |
commit | a876295e1bec85f8318807424bb9de8794a4d7f7 (patch) | |
tree | 71ff6d81d009575c0c3d1aab829ef303ddfb3347 /tools/u_boot_pylib/test_util.py | |
parent | ac964c099b5a90076add8aef6bcd6eb3d96eb458 (diff) |
binman: Exclude dist-packages and site-packages
Newer versions of the python3-coverage tool require a directory
separator before and after the directory name. Add this so that system
package are not included in the coverage report.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/u_boot_pylib/test_util.py')
-rw-r--r-- | tools/u_boot_pylib/test_util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/u_boot_pylib/test_util.py b/tools/u_boot_pylib/test_util.py index dd671965263..ed216c4fc4e 100644 --- a/tools/u_boot_pylib/test_util.py +++ b/tools/u_boot_pylib/test_util.py @@ -56,7 +56,7 @@ def run_test_coverage(prog, filter_fname, exclude_list, build_dir, else: glob_list = [] glob_list += exclude_list - glob_list += ['*libfdt.py', '*site-packages*', '*dist-packages*'] + glob_list += ['*libfdt.py', '*/site-packages/*', '*/dist-packages/*'] glob_list += ['*concurrencytest*'] test_cmd = 'test' if 'binman' in prog or 'patman' in prog else '-t' prefix = '' |