]> code.ossystems Code Review - openembedded-core.git/commit
testsdk: Handle minimal eSDK and avoid download costs
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Mar 2017 01:12:10 +0000 (01:12 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Mar 2017 16:11:17 +0000 (16:11 +0000)
commit866b55905eabf93f45c10a08d5b53c459ac4c056
tree602b29ba3486e3fd270936e2bd6338e8f9099bb3
parentc59b82ec151618bb4bcb1953b8ca7d23255d3357
testsdk: Handle minimal eSDK and avoid download costs

When using a minimal eSDK, testing currently fails as the sdk isn't
populated. We therefore setup the eSDK under test to point at local
sstate and execute a command to ensure the toolchain is populated
since most of the tests depend on this being present.

At the same time, add in a link to DL_DIR through own-mirrors so
that tests which fetch source (e.g. the kernel module one) can
use the local stash. This cuts test execution of the kernel module
test from 2000s to 120s.

We did try using DL_DIR directly but that causes uninative issues
requiring other workarounds so own-mirrors is neater.

Together these fixes unbreak eSDK testing on the autobuilder.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/testsdk.bbclass