From 4ee55568b758e7e09327d633aee4dcb3aa45c749 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Thu, 12 Sep 2024 14:17:57 +0100 Subject: [PATCH] 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 Part-of: --- .gitlab-ci/run-pytest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \