]> git.ipfire.org Git - thirdparty/bind9.git/commit
Allow py.test system test to skip itself
authorPetr Špaček <pspacek@isc.org>
Tue, 22 Jun 2021 14:11:26 +0000 (16:11 +0200)
committerMichal Nowak <mnowak@isc.org>
Fri, 8 Apr 2022 07:20:55 +0000 (09:20 +0200)
commit237d88fe2278a227dd00083b94d08fc0c0f261e3
tree606276e78dee520558f9d1fc5bd145b595aabf22
parent7cffcce36f9b15fde302f5b9f71a7b968e2a4fac
Allow py.test system test to skip itself

Enable use of shortcuts like pytest.importorskip and other tricks
which can cause test to skip itself.

(cherry picked from commit b8829c801f876b58e0ac1ce354e6790ef8de4532)

In addition to b8829c801f876b58e0ac1ce354e6790ef8de4532,
"R:$systest:SKIPPED" is not being printed when pytests are skipped
because that leads to two `R:` lines - SKIPPED and PASS/FAIL which is
determined later based on other conditions (core files identified,
assertion failures, shell test result, ...) - which is wrong and
testsummary.sh rightfully stumbles on it:

    I:Found 106 test results, but 105 tests were run
bin/tests/system/run.sh