build: fix bad regexs when removing signingConfig from srclibs

I went through the source of all apps in fdroiddata for examples, and found
some that use readLine() for things totally unrelated to signingConfigs.

https://gitlab.com/fdroid/fdroiddata/merge_requests/4775#note_234132902
This commit is contained in:
Hans-Christoph Steiner 2019-10-23 12:23:37 +02:00
parent 6d11da5e13
commit afaa24f2fd
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA
7 changed files with 1052 additions and 4 deletions

View file

@ -29,13 +29,16 @@ class ScannerTest(unittest.TestCase):
source_files = os.path.join(self.basedir, 'source-files')
projects = {
'Zillode': 1,
'firebase-suspect': 1
'firebase-suspect': 1,
'org.mozilla.rocket': 4,
'realm': 1,
}
for d in glob.glob(os.path.join(source_files, '*')):
build = fdroidserver.metadata.Build()
fatal_problems = fdroidserver.scanner.scan_source(d, build)
self.assertEqual(projects.get(os.path.basename(d), 0),
fatal_problems)
should = projects.get(os.path.basename(d), 0)
self.assertEqual(should, fatal_problems,
"%s should have %d errors!" % (d, should))
if __name__ == "__main__":