diff --git a/.gitlab-ci/run-pytest.sh b/.gitlab-ci/run-pytest.sh index a83a67ca098..1034d198f11 100755 --- a/.gitlab-ci/run-pytest.sh +++ b/.gitlab-ci/run-pytest.sh @@ -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 \