Skip to content

Commit baae956

Browse files
committed
Be more careful when setting EESSI_ACCELERATOR_TARGET_OVERRIDE based on bot config
1 parent 8a6ce0f commit baae956

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bot/build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,12 @@ export EESSI_SOFTWARE_SUBDIR_OVERRIDE
162162
echo "bot/build.sh: EESSI_SOFTWARE_SUBDIR_OVERRIDE='${EESSI_SOFTWARE_SUBDIR_OVERRIDE}'"
163163

164164
# determine accelerator target (if any) from .architecture in ${JOB_CFG_FILE}
165-
export EESSI_ACCELERATOR_TARGET_OVERRIDE="accel/$(cfg_get_value architecture accelerator)"
165+
ACCEL_OVERRIDE=$(cfg_get_value "architecture" "accelerator")
166+
if [[ -n "$ACCEL_OVERRIDE" ]]; then
167+
# bot job config does not include accel subdirectory
168+
export EESSI_ACCELERATOR_TARGET_OVERRIDE="accel/$ACCEL_OVERRIDE"
169+
else
170+
export EESSI_ACCELERATOR_TARGET_OVERRIDE=""
166171
echo "bot/build.sh: EESSI_ACCELERATOR_TARGET_OVERRIDE='${EESSI_ACCELERATOR_TARGET_OVERRIDE}'"
167172

168173
# get EESSI_OS_TYPE from .architecture.os_type in ${JOB_CFG_FILE} (default: linux)

0 commit comments

Comments
 (0)