mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
scanner: add --json option for outputting machine readable results
* makes per-build entries in per-app entries * `fdroid scanner --json --verbose` will output logging messages to stderr * removed " at line N" from one message to make them uniform keys * this will be used in issuebot
This commit is contained in:
parent
a0e3b01e94
commit
cdaf62e5d9
2 changed files with 44 additions and 8 deletions
|
|
@ -26,6 +26,8 @@ class ScannerTest(unittest.TestCase):
|
|||
self.basedir = os.path.join(localmodule, 'tests')
|
||||
|
||||
def test_scan_source_files(self):
|
||||
fdroidserver.scanner.options = type('', (), {})()
|
||||
fdroidserver.scanner.options.json = False
|
||||
source_files = os.path.join(self.basedir, 'source-files')
|
||||
projects = {
|
||||
'cn.wildfirechat.chat': 4,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue