mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
add some basic tests for scanner.main
This commit is contained in:
parent
42d9ac446c
commit
ab579be6b5
2 changed files with 52 additions and 1 deletions
|
|
@ -550,7 +550,7 @@ def main():
|
|||
appids = []
|
||||
for apk in options.appid:
|
||||
if os.path.isfile(apk):
|
||||
count = scan_binary(apk, exodus)
|
||||
count = scanner.scan_binary(apk, exodus)
|
||||
if count > 0:
|
||||
logging.warning(
|
||||
_('Scanner found {count} problems in {apk}:').format(
|
||||
|
|
@ -565,6 +565,7 @@ def main():
|
|||
return
|
||||
|
||||
# Read all app and srclib metadata
|
||||
|
||||
allapps = metadata.read_metadata()
|
||||
apps = common.read_app_args(appids, allapps, True)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue