mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
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:
parent
6d11da5e13
commit
afaa24f2fd
7 changed files with 1052 additions and 4 deletions
|
|
@ -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__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue