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:
Hans-Christoph Steiner 2020-05-14 16:08:56 +02:00
parent a0e3b01e94
commit cdaf62e5d9
2 changed files with 44 additions and 8 deletions

View file

@ -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,