1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00

Ignore src/test only in path_in_build_dir

Found while debugging Debian autopkgtests.
This commit is contained in:
Jochen Sprickerhof 2021-01-04 21:12:54 +01:00 committed by Jochen Sprickerhof
parent c1186f1b45
commit a9c380b2b8

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])