ci: Add rerunfailures due to flaky tests

This commit is contained in:
Christian Decker
2021-01-11 11:39:57 +01:00
parent 708b382bd0
commit 0b4f321fc7

View File

@@ -21,7 +21,8 @@ global_dependencies = [
'pytest==5.*',
'pytest-xdist==1.34.0',
'pytest-timeout',
'pyln-testing'
'pyln-testing',
'pytest-rerunfailures',
]
Plugin = namedtuple('Plugin', ['name', 'path', 'requirements', 'devrequirements'])
@@ -118,6 +119,8 @@ def run_one(p: Plugin) -> bool:
'-n 5',
'--timeout=300',
'--junitxml=report-{}.xml'.format(p.name),
'--reruns=2',
'--color=no',
],
stderr=subprocess.STDOUT,
env=env,