Skip to content

Commit 5a76417

Browse files
author
Caspar van Leeuwen
committed
Also use EESSI_ACCELERATOR_TARGET_OVERRIDE in the test step
1 parent 2d0cc68 commit 5a76417

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

bot/test.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,14 @@ export EESSI_SOFTWARE_SUBDIR_OVERRIDE
175175
echo "bot/test.sh: EESSI_SOFTWARE_SUBDIR_OVERRIDE='${EESSI_SOFTWARE_SUBDIR_OVERRIDE}'"
176176

177177
# determine accelerator target (if any) from .architecture in ${JOB_CFG_FILE}
178-
export EESSI_ACCELERATOR_TARGET=$(cfg_get_value "architecture" "accelerator")
179-
echo "bot/test.sh: EESSI_ACCELERATOR_TARGET='${EESSI_ACCELERATOR_TARGET}'"
178+
ACCEL_OVERRIDE=$(cfg_get_value "architecture" "accelerator")
179+
if [[ -n "$ACCEL_OVERRIDE" ]]; then
180+
# bot job config does not include accel subdirectory
181+
export EESSI_ACCELERATOR_TARGET_OVERRIDE="accel/$ACCEL_OVERRIDE"
182+
else
183+
export EESSI_ACCELERATOR_TARGET_OVERRIDE=""
184+
fi
185+
echo "bot/test.sh: EESSI_ACCELERATOR_TARGET_OVERRIDE='${EESSI_ACCELERATOR_TARGET_OVERRIDE}'"
180186

181187
# get EESSI_OS_TYPE from .architecture.os_type in ${JOB_CFG_FILE} (default: linux)
182188
EESSI_OS_TYPE=$(cfg_get_value "architecture" "os_type")

0 commit comments

Comments
 (0)