xbps-src: add make_check_pre

$make_check_pre can be used for wrapper commands like xvfb-run or
dbus-run-session which are common ways to make tests work. This way many
templates can avoid defining their own do_check function.
This commit is contained in:
Michal Vasilek
2022-02-28 14:40:07 +01:00
committed by Echo
parent f991e72bf1
commit 71b11fdbdb
14 changed files with 17 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ do_build() {
do_check() {
if python3 -c 'import pytest' >/dev/null 2>&1; then
python3 -m pytest ${make_check_args} ${make_check_target}
${make_check_pre} python3 -m pytest ${make_check_args} ${make_check_target}
else
msg_warn "Unable to determine tests for PEP517 Python templates"
return 0