Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! REMOVEME: limit builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Jan 17, 2024
1 parent e1164af commit ad32d49
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .murdock
Original file line number Diff line number Diff line change
Expand Up @@ -417,17 +417,20 @@ test_job() {
local board=$(echo $2 | cut -f 1 -d':')
local toolchain=$(echo $2 | cut -f 2 -d':')

# this points to the dwq checkout root folder
local basedir="$(pwd)"

# interpret any extra arguments as file names.
# They will be sent along with the job to the test worker
# and stored in the application's binary folder.
shift 2
local files=""
for filename in "$@"; do
# check if the file is within $(BINDIR)
if startswith "${BINDIR}" "${filename}"; then
true
# check if the file is within $(basedir)
if startswith "${basedir}" "${filename}"; then
filename="$(realpath --relative-to ${basedir} ${filename})"
else
error "$0: error: extra test files not within \${BINDIR}!"
error "$0: error: extra test files not within \${basedir}!"
fi

files="${files} --file ${filename}"
Expand All @@ -452,7 +455,7 @@ run_test() {
# set build directory to match the builder
export BINDIR="$(pwd)/build"

ls -laR
ls -laR ${BINDIR}

print_worker
echo "-- executing tests for $appdir on $board (compiled with $toolchain toolchain):"
Expand Down

0 comments on commit ad32d49

Please sign in to comment.