From 83cde477348bc1fc9eba2835cc4d84b7041e9a29 Mon Sep 17 00:00:00 2001 From: Tom Krizek Date: Tue, 22 Aug 2023 18:39:51 +0200 Subject: [PATCH] Allow re-runs of qmin system test The qmin test is inherently unstable. It fails quite often with failure modes described in GL #904. Allow the pytest runner to re-run the test up to 3 times to only detect a more persistent and reproducible failures rather than random noise caused by the nature of the test. (cherry picked from commit be2123a8e9926782dcc40cd93c2482f175c4d368) --- bin/tests/system/qmin/tests_sh_qmin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/tests/system/qmin/tests_sh_qmin.py b/bin/tests/system/qmin/tests_sh_qmin.py index 2566c78e0f..607732232e 100644 --- a/bin/tests/system/qmin/tests_sh_qmin.py +++ b/bin/tests/system/qmin/tests_sh_qmin.py @@ -9,6 +9,10 @@ # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. +import pytest_custom_markers + +# The qmin test is inherently unstable, see GL #904 for details. +@pytest_custom_markers.flaky(max_runs=3) def test_qmin(run_tests_sh): run_tests_sh()