codecoverage/bot: Add system check for robustcheckout and genhtml (#2219)

This commit is contained in:
Bastien Abadie 2019-07-16 18:41:44 +02:00 коммит произвёл Marco
Родитель cecb3c224e
Коммит 88f4338294
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -13,13 +13,14 @@ def test_mercurial():
# Check mercurial version
output = run_check(['hg', 'version', '-T', '{ver}'])
assert output.decode('utf-8') == '4.8'
assert output.decode('utf-8').startswith('4.8')
# Check needed extensions
output = run_check(['hg', 'version', '-T', '{extensions}'])
extensions = output.decode('utf-8').split('\n')
assert 'hgmo' in extensions
assert 'pushlog' in extensions
assert 'robustcheckout' in extensions
def test_grcov():
@ -27,3 +28,10 @@ def test_grcov():
Test grcov is available on the system
'''
assert shutil.which('grcov'), 'Missing grcov'
def test_genhtml():
'''
Test genhtml is available on the system
'''
assert shutil.which('genhtml'), 'Missing genhtml'