ptest: fix packaging of test data

Use correct path for the test sources and data.

Pick-to: 6.3
Change-Id: I90f14130dce7f3b5ef3ae45dbdd60540c795ba9e
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
This commit is contained in:
Samuli Piippo 2022-03-04 11:33:05 +00:00
parent 6492c16955
commit d1ffa135a7

View File

@ -47,7 +47,7 @@ fakeroot do_install_ptest() {
test=${f##${D}${PTEST_PATH}/}
testdir=$(dirname ${test})
# tests may depend on files from sources
if [ -e ${S}${testdir} ]; then
if [ -e ${S}/${testdir} ]; then
cp -r ${S}/${testdir}/* ${D}${PTEST_PATH}/${testdir}
fi
echo ${test} >> ${D}${PTEST_PATH}/tst_list