Commit b7198d73 authored by Richard Neill's avatar Richard Neill
Browse files

ewaol-tests/runtime-integration-tests.bbclass: Ignore files from previous build



The bbclass processes filenames by searching within WORKDIR. However, WORKDIR
may be populated by files from a previous build, causing errors when they are
processed.

This patch instead processes the files from the installation directly, so the
filenames are always part of the current build.

Issue-Id: SCM-4394
Signed-off-by: Richard Neill's avatarRichard Neill <richard.neill@arm.com>
Change-Id: Ia67822ce84b525f76f44419c0850b6458bf6ed6e
parent 352101fa
......@@ -60,15 +60,16 @@ do_install() {
envsubst "${ENVSUBST_VARS}" < "${WORKDIR}/run-ptest.in" \
> "${WORKDIR}/run-ptest"
additional_tests="$(find "${WORKDIR}" -maxdepth 1 \
additional_tests="$(find ${D}/${TEST_DIR} -maxdepth 1 \
-name *append-*.bats -printf "%f ")"
for test in ${additional_tests}; do
# Append the additional tests to the deployed test suite
# Skip the first 2 lines to omit the shebang
tail -n +3 "${D}/${TEST_DIR}/${test}" \
>> "${D}/${TEST_DIR}/${TEST_SUITE_NAME}.bats"
rm -fv "${D}/${TEST_DIR}/${test}"
done
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment