[Tests] Look for coverage3 if python3-coverage isn't installed

This commit is contained in:
Salvador E. Tropea 2022-09-23 07:27:46 -03:00
parent e690d4d780
commit aba02e083c
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@ if sys.path[0] != prev_dir:
from kibot.misc import (error_level_to_name)
COVERAGE_SCRIPT = 'python3-coverage'
if shutil.which(COVERAGE_SCRIPT) is None:
COVERAGE_SCRIPT = 'coverage3'
assert shutil.which(COVERAGE_SCRIPT) is not None
KICAD_PCB_EXT = '.kicad_pcb'
KICAD_VERSION_5_99 = 5099000
KICAD_VERSION_6_0_0 = 6000000