diff --git a/test/e2e/ci/Jenkinsfile b/test/e2e/ci/Jenkinsfile index 67579ab817..e0d37a016e 100644 --- a/test/e2e/ci/Jenkinsfile +++ b/test/e2e/ci/Jenkinsfile @@ -151,9 +151,9 @@ pipeline { passwordVariable: 'TESTRAIL_PSW' ) ]) { + /* Keep the --reruns flag first, or it won't work */ sh """ - python3 -m pytest ${flags.join(" ")} \ - --ignore-flaky \ + python3 -m pytest --reruns=1 ${flags.join(" ")} \ --disable-warnings \ --alluredir=./allure-results """ diff --git a/test/e2e/pytest.ini b/test/e2e/pytest.ini index 91dea22a01..fcec2810d3 100644 --- a/test/e2e/pytest.ini +++ b/test/e2e/pytest.ini @@ -5,7 +5,7 @@ log_cli = true log_cli_level = INFO log_cli_format = %(asctime)s.%(msecs)03d %(levelname)7s CLI %(name)s %(message).5000s -addopts = --disable-warnings -p no:logging +addopts = --reruns=1 --disable-warnings -p no:logging markers = critical: Critical checks for every PR diff --git a/test/e2e/requirements.txt b/test/e2e/requirements.txt index fa59b61665..0db3203e82 100644 --- a/test/e2e/requirements.txt +++ b/test/e2e/requirements.txt @@ -8,6 +8,6 @@ atomacos==3.3.0; platform_system == "Darwin" allure-pytest==2.13.2 testrail-api==1.12.0 pyperclip==1.8.2 -pytest-rerunfailures==11.1.2 +pytest-rerunfailures==13.0 pytest-ignore-flaky==2.1.0 pytest-timeout==2.2.0