mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 10:14:13 +08:00
ci/python: Allow empty PYTHONPATH
$PYTHONPATH doesn't have to be set, so let it expand to nothing if there's nothing there. Signed-off-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31151>
This commit is contained in:
parent
51c2707b8e
commit
4ee55568b7
@ -33,7 +33,7 @@ SCRIPT_TEST_DIR=${CI_PROJECT_DIR}/bin/ci
|
||||
|
||||
uncollapsed_section_switch pytest "Running pytest"
|
||||
|
||||
PYTHONPATH="${LIB_TEST_DIR}:${SCRIPT_TEST_DIR}:${PYTHONPATH}" python3 -m \
|
||||
PYTHONPATH="${LIB_TEST_DIR}:${SCRIPT_TEST_DIR}:${PYTHONPATH:-}" python3 -m \
|
||||
pytest "${LIB_TEST_DIR}" "${SCRIPT_TEST_DIR}" \
|
||||
-W ignore::DeprecationWarning \
|
||||
--junitxml=artifacts/ci_scripts_report.xml \
|
||||
|
Loading…
Reference in New Issue
Block a user