Merge branch 'test_strip_path' into 'master'

Ignore src/test only in path_in_build_dir

See merge request fdroid/fdroidserver!845
This commit is contained in:
Hans-Christoph Steiner 2021-01-05 06:33:04 +00:00
commit e878c6f902
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ def scan_source(build_dir, build=metadata.Build()):
return ignoreproblem(what, path_in_build_dir)
if todelete(path_in_build_dir):
return removeproblem(what, path_in_build_dir, filepath)
if 'src/test' in filepath or '/test/' in path_in_build_dir:
if 'src/test' in path_in_build_dir or '/test/' in path_in_build_dir:
return warnproblem(what, path_in_build_dir)
if options and 'json' in vars(options) and options.json:
json_per_build['errors'].append([what, path_in_build_dir])