mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-15 08:57:42 +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)
|