From 0b4f321fc70bb96863926e4b64ab208b5270c1f7 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Mon, 11 Jan 2021 11:39:57 +0100 Subject: [PATCH] ci: Add rerunfailures due to flaky tests --- .ci/test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.ci/test.py b/.ci/test.py index 1f51e39..0e87af8 100644 --- a/.ci/test.py +++ b/.ci/test.py @@ -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,