mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
Merge branch 'scanner_fix_ci' into 'master'
scanner: check for `test` in path relative to build dir See merge request fdroid/fdroidserver!790
This commit is contained in:
commit
b1128325b5
@ -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…
Reference in New Issue
Block a user