Skip to content

Commit c84400e

Browse files
committed
ci: adapt .murdock test_job to changed dwq
1 parent 9ec623a commit c84400e

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.murdock

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -415,24 +415,23 @@ test_job() {
415415
local board=$(echo $2 | cut -f 1 -d':')
416416
local toolchain=$(echo $2 | cut -f 2 -d':')
417417

418+
# this points to the dwq checkout root folder
419+
local basedir="$(pwd)"
420+
418421
# interpret any extra arguments as file names.
419422
# They will be sent along with the job to the test worker
420423
# and stored in the application's binary folder.
421424
shift 2
422425
local files=""
423426
for filename in "$@"; do
424-
# check if the file is within $(BINDIR)
425-
if startswith "${BINDIR}" "${filename}"; then
426-
# get relative (to $(BINDIR) path
427-
local relpath="$(realpath --relative-to ${BINDIR} ${filename})"
427+
# check if the file is within $(basedir)
428+
if startswith "${basedir}" "${filename}"; then
429+
filename="$(realpath --relative-to ${basedir} ${filename})"
428430
else
429-
error "$0: error: extra test files not within \${BINDIR}!"
431+
error "$0: error: extra test files not within \${basedir}!"
430432
fi
431433

432-
# set remote file path.
433-
# currently, the test workers build in the default build path.
434-
local remote_bindir="${appdir}/bin/${board}"
435-
files="${files} --file ${filename}:${remote_bindir}/${relpath}"
434+
files="${files} --file ${filename}"
436435
done
437436

438437
dwqc \
@@ -448,6 +447,10 @@ run_test() {
448447
local appdir=$1
449448
local board=$(echo $2 | cut -f 1 -d':')
450449
local toolchain=$(echo $2 | cut -f 2 -d':')
450+
451+
# set build directory to match the builder
452+
export BINDIR="$(pwd)/build"
453+
451454
print_worker
452455
echo "-- executing tests for $appdir on $board (compiled with $toolchain toolchain):"
453456
hook run_test_pre

0 commit comments

Comments
 (0)