mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 14:30:30 +03:00 
			
		
		
		
	
							parent
							
								
									78a661fc7d
								
							
						
					
					
						commit
						16ca7f3be3
					
				
					 1 changed files with 4 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -59,18 +59,14 @@ class BuildTest(unittest.TestCase):
 | 
			
		|||
        fdroidserver.build.config['build_tools'] = teststring
 | 
			
		||||
        fdroidserver.build.adapt_gradle(testsdir)
 | 
			
		||||
        pattern = re.compile("buildToolsVersion[\s=]+'%s'\s+" % teststring)
 | 
			
		||||
        for f in ('source-files/fdroid/fdroidclient/build.gradle',
 | 
			
		||||
        for p in ('source-files/fdroid/fdroidclient/build.gradle',
 | 
			
		||||
                  'source-files/Zillode/syncthing-silk/build.gradle',
 | 
			
		||||
                  'source-files/open-keychain/open-keychain/build.gradle',
 | 
			
		||||
                  'source-files/osmandapp/osmand/build.gradle'):
 | 
			
		||||
            with open(os.path.join(testsdir, f), 'r') as f:
 | 
			
		||||
                  'source-files/osmandapp/osmand/build.gradle',
 | 
			
		||||
                  'source-files/open-keychain/open-keychain/OpenKeychain/build.gradle'):
 | 
			
		||||
            with open(os.path.join(testsdir, p), 'r') as f:
 | 
			
		||||
                filedata = f.read()
 | 
			
		||||
            self.assertIsNotNone(pattern.search(filedata))
 | 
			
		||||
        tp = os.path.join(testsdir,
 | 
			
		||||
                          'source-files/open-keychain/open-keychain/OpenKeychain/build.gradle')
 | 
			
		||||
        with open(tp, 'r') as f:
 | 
			
		||||
            filedata = f.read()
 | 
			
		||||
        self.assertIsNone(pattern.search(filedata))
 | 
			
		||||
 | 
			
		||||
if __name__ == "__main__":
 | 
			
		||||
    parser = optparse.OptionParser()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue