diff options
Diffstat (limited to 'meta/classes/testsdk.bbclass')
-rw-r--r-- | meta/classes/testsdk.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass index 75b40271fa..802e57f55d 100644 --- a/meta/classes/testsdk.bbclass +++ b/meta/classes/testsdk.bbclass | |||
@@ -149,6 +149,17 @@ def testsdkext_main(d): | |||
149 | bb.plain("Extensible SDK testing environment: %s" % s) | 149 | bb.plain("Extensible SDK testing environment: %s" % s) |
150 | 150 | ||
151 | sdk_env = sdk_envs[s] | 151 | sdk_env = sdk_envs[s] |
152 | |||
153 | # Use our own SSTATE_DIR and DL_DIR so that updates to the eSDK come from our sstate cache | ||
154 | # and we don't spend hours downloading kernels for the kernel module test | ||
155 | with open(os.path.join(sdk_dir, 'conf', 'local.conf'), 'a+') as f: | ||
156 | f.write('SSTATE_MIRRORS = "file://.* file://%s/PATH"\n' % test_data.get('SSTATE_DIR')) | ||
157 | f.write('SOURCE_MIRROR_URL = "file://%s"\n' % test_data.get('DL_DIR')) | ||
158 | f.write('INHERIT += "own-mirrors"') | ||
159 | |||
160 | # We need to do this in case we have a minimal SDK | ||
161 | subprocess.check_output(". %s > /dev/null; devtool sdk-install meta-extsdk-toolchain" % sdk_env, cwd=sdk_dir, shell=True) | ||
162 | |||
152 | tc = OESDKExtTestContext(td=test_data, logger=logger, sdk_dir=sdk_dir, | 163 | tc = OESDKExtTestContext(td=test_data, logger=logger, sdk_dir=sdk_dir, |
153 | sdk_env=sdk_env, target_pkg_manifest=target_pkg_manifest, | 164 | sdk_env=sdk_env, target_pkg_manifest=target_pkg_manifest, |
154 | host_pkg_manifest=host_pkg_manifest) | 165 | host_pkg_manifest=host_pkg_manifest) |