]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
testing: provide meaningful error when pytest is not available
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Wed, 6 Jul 2022 19:55:48 +0000 (19:55 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Fri, 13 Jan 2023 21:24:10 +0000 (21:24 +0000)
commit1c78434956641ee7b722f4f2a6cbcf5394753887
tree2cd966a7bb7be235a7f787f2ee71f4e74829f102
parentcdd12f62eb32a3d6f72d5980af538870ef54637e
testing: provide meaningful error when pytest is not available

atf format does not provide any way of signalling any error message
 back to the atf runner when listing tests. Work this around by
 reporting "__test_cases_list_pytest_binary_not_found__" test instead.

Reviewed By: kp
Differential Revision: https://reviews.freebsd.org/D35721

(cherry picked from commit 2bfd8b5b9419b0ceb3dd0295fdf413d32969e5b2)
libexec/atf/atf-pytest-wrapper/atf_pytest_wrapper.cpp