Pass the toaster test environment SSTATE_DIR and DL_DIR for faster
builds and TOASTER_DJANGO_TMPDIR to remove problematic temp files
from the root level '/tmp' directory.

Signed-off-by: Alexander Lussier-Cullen 
<alexander.lussier-cul...@savoirfairelinux.com>
---
 scripts/run-toaster-tests | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/run-toaster-tests b/scripts/run-toaster-tests
index a785c36..516965e 100755
--- a/scripts/run-toaster-tests
+++ b/scripts/run-toaster-tests
@@ -14,6 +14,12 @@ builddir=$(realpath "$1")
 pokydir=$(realpath "$2")
 
 cd $builddir
+
+bitbake -e > bbenv
+export SSTATE_DIR=$(grep '^SSTATE_DIR=' bbenv | cut -d "=" -f2-)
+export DL_DIR=$(grep '^DL_DIR=' bbenv | cut -d "=" -f2-)
+export TOASTER_DJANGO_TMPDIR=$builddir
+
 mkdir -p toaster_logs
 python3 -m venv venv --without-pip --system-site-packages
 source venv/bin/activate
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61743): https://lists.yoctoproject.org/g/yocto/message/61743
Mute This Topic: https://lists.yoctoproject.org/mt/102768032/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to