]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add custom flaky decorator to handle unstable tests
authorTom Krizek <tkrizek@isc.org>
Thu, 17 Aug 2023 08:30:46 +0000 (10:30 +0200)
committerMichal Nowak <mnowak@isc.org>
Tue, 22 Aug 2023 06:55:36 +0000 (08:55 +0200)
commitf84e0f4ad03d53d758b5b95e077cf585cda8d042
treecb19b4c699f060e3e1047b3044a88d1904e808a5
parent1cb359e7cbe19cc90de3a3f6dd3a6db73f0d4f96
Add custom flaky decorator to handle unstable tests

If the flaky plugin for pytest is available, use its decorator to
support re-running unstable tests. In case the package is missing,
execute the test as usual without attempts to re-run it in case of
failure.

This is mostly intended to increase the test stability in CI. Using a
custom decorator enables us to keep the flaky package as an optional
dependency.

(cherry picked from commit 5b703de733b1f53f0452e8e654459d7adeb9aa00)
bin/tests/system/pytest_custom_markers.py