common/do_check: move make_check_pre behind env setting

All environment variables setting in command execution must be put
before any non-variables-like, otherwise, they're intepretted as
something else.

Fix: 71b11fdbdb, (xbps-src: add make_check_pre, 2022-02-28)
This commit is contained in:
Đoàn Trần Công Danh 2022-05-08 08:12:03 +07:00
parent cb3aca7fbb
commit 90c35c4ac1
2 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,8 @@ do_build() {
do_check() {
if python3 -c 'import pytest' >/dev/null 2>&1; then
${make_check_pre} PYTHONPATH="$(cd build/lib* && pwd)" \
PYTHONPATH="$(cd build/lib* && pwd)" \
${make_check_pre} \
python3 -m pytest ${make_check_args} ${make_check_target}
else
# Fall back to deprecated setup.py test orchestration without pytest

View File

@ -3,7 +3,7 @@
#
do_check() {
${make_check_pre} RAKULIB=lib prove -r -e raku t/
RAKULIB=lib ${make_check_pre} prove -r -e raku t/
}
do_install() {