mirror of
				https://github.com/Telecominfraproject/OpenCellular.git
				synced 2025-11-04 04:17:56 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			319 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			319 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env python3
 | 
						|
from lcov_cobertura import LcovCobertura
 | 
						|
 | 
						|
LCOV_FILE = 'build/coverage/test-coverage.info'
 | 
						|
OUT_FILE = 'build/coverage/test-coverage.xml'
 | 
						|
 | 
						|
with open(LCOV_FILE) as fr:
 | 
						|
    data = fr.read()
 | 
						|
 | 
						|
converter = LcovCobertura(data)
 | 
						|
res = converter.convert()
 | 
						|
 | 
						|
with open(OUT_FILE, 'w') as fw:
 | 
						|
    fw.write(res)
 |