From ce98715566b5617b940acb01df2d237535e7297c Mon Sep 17 00:00:00 2001 From: Vignesh Raman Date: Thu, 24 Oct 2024 11:12:41 +0530 Subject: [PATCH] ci/crosvm: Use default value for CROSVM_GALLIUM_DRIVER Use a default value for CROSVM_GALLIUM_DRIVER. This change ensures that if the variable is unset, it defaults to an empty string. This prevents unbound variable errors with set -u in the case of drm-ci. Signed-off-by: Vignesh Raman Part-of: --- .gitlab-ci/crosvm-runner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci/crosvm-runner.sh b/.gitlab-ci/crosvm-runner.sh index 238de65d78d..038d6032055 100755 --- a/.gitlab-ci/crosvm-runner.sh +++ b/.gitlab-ci/crosvm-runner.sh @@ -99,7 +99,7 @@ unset XDG_RUNTIME_DIR CROSVM_KERN_ARGS="quiet console=null root=my_root rw rootfstype=virtiofs ip=192.168.30.2::192.168.30.1:255.255.255.0:crosvm:eth0" CROSVM_KERN_ARGS="${CROSVM_KERN_ARGS} init=${SCRIPTS_DIR}/crosvm-init.sh -- ${VSOCK_STDOUT} ${VSOCK_STDERR} ${VM_TEMP_DIR}" -[ "${CROSVM_GALLIUM_DRIVER}" = "llvmpipe" ] && \ +[ "${CROSVM_GALLIUM_DRIVER:-}" = "llvmpipe" ] && \ CROSVM_LIBGL_ALWAYS_SOFTWARE=true || CROSVM_LIBGL_ALWAYS_SOFTWARE=false set +e -x