mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 15:02:51 +03:00
scanner: check for test
in path relative to build dir
This was degrading scanner errors to warnings whenever the path from the current running install of fdroidserver contained test, as has been happening in the CI image builder: https://gitlab.com/fdroid/ci-images-server/-/blob/master/test#L6
This commit is contained in:
parent
d595948616
commit
c90a72e14d
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ def scan_source(build_dir, build=metadata.Build()):
|
||||||
return ignoreproblem(what, path_in_build_dir)
|
return ignoreproblem(what, path_in_build_dir)
|
||||||
if todelete(path_in_build_dir):
|
if todelete(path_in_build_dir):
|
||||||
return removeproblem(what, path_in_build_dir, filepath)
|
return removeproblem(what, path_in_build_dir, filepath)
|
||||||
if 'src/test' in filepath or '/test/' in filepath:
|
if 'src/test' in filepath or '/test/' in path_in_build_dir:
|
||||||
return warnproblem(what, path_in_build_dir)
|
return warnproblem(what, path_in_build_dir)
|
||||||
if options and 'json' in vars(options) and options.json:
|
if options and 'json' in vars(options) and options.json:
|
||||||
json_per_build['errors'].append([what, path_in_build_dir])
|
json_per_build['errors'].append([what, path_in_build_dir])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue