@@ -1776,7 +1776,7 @@
]
},
"toaster" : {
- "EXTRACMDS" : ["${SCRIPTSDIR}/run-toaster-tests ${HELPERBUILDDIR} ${HELPERBUILDDIR}/.."]
+ "EXTRACMDS" : ["${SCRIPTSDIR}/run-toaster-tests ${HELPERBUILDDIR} ${HELPERBUILDDIR}/../layers/bitbake"]
}
},
"repo-defaults" : {
@@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-2.0-only
#
# Called with $1 as the build directory
-# $2 as the path to poky
+# $2 as the path to bitbake
set -e
set -u
@@ -11,7 +11,7 @@ set -o pipefail
set -x
builddir=$(realpath "$1")
-pokydir=$(realpath "$2")
+bitbakedir=$(realpath "$2")
cd $builddir
@@ -28,12 +28,12 @@ mkdir -p toaster_logs
python3 -m venv venv --without-pip --system-site-packages
source venv/bin/activate
-python3 -m pip install -r $pokydir/bitbake/toaster-requirements.txt -r $pokydir/bitbake/lib/toaster/tests/toaster-tests-requirements.txt
+python3 -m pip install -r $bitbakedir/toaster-requirements.txt -r $bitbakedir/lib/toaster/tests/toaster-tests-requirements.txt
-python3 -m pytest -c $pokydir/bitbake/lib/toaster/pytest.ini $pokydir/bitbake/lib/toaster/tests/
+python3 -m pytest -c $bitbakedir/lib/toaster/pytest.ini $bitbakedir/lib/toaster/tests/
-if [ -e $pokydir/bitbake/lib/toaster/orm/fixtures/check_fixtures.py ]; then
+if [ -e $bitbakedir/lib/toaster/orm/fixtures/check_fixtures.py ]; then
echo "Checking toaster fixtures"
- cd $pokydir/bitbake/lib/toaster/orm/fixtures/
- $pokydir/bitbake/lib/toaster/orm/fixtures/check_fixtures.py
+ cd $bitbakedir/lib/toaster/orm/fixtures/
+ $bitbakedir/lib/toaster/orm/fixtures/check_fixtures.py
fi
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> --- config.json | 2 +- scripts/run-toaster-tests | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-)