diff options
author | Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com> | 2023-12-07 16:49:44 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-08 17:17:42 +0000 |
commit | ad2f5a359e7368f0bf1a6d7d2f01a0f8080387d7 (patch) | |
tree | ecb66a5ebdfb5387f0f949054c92490f0bada2a2 /bitbake/lib/toaster/tests/builds/buildtest.py | |
parent | 1b14962c3fae771f50d6a8e1937a93c7ce76f592 (diff) | |
download | poky-ad2f5a359e7368f0bf1a6d7d2f01a0f8080387d7.tar.gz |
bitbake: toaster/tests: Update build test
Updated build tests in toaster, added SSTATE_MIRROR to package build, changed build directory and update test order
This builds include the core-minimal-image, on the test enviroment a smaller package was use to run the test for time purposes
(Bitbake rev: af31116f0017912fc5a58a5976c814b6b326985f)
Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/tests/builds/buildtest.py')
-rw-r--r-- | bitbake/lib/toaster/tests/builds/buildtest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/tests/builds/buildtest.py b/bitbake/lib/toaster/tests/builds/buildtest.py index 53cd7a9ffa..bec933124c 100644 --- a/bitbake/lib/toaster/tests/builds/buildtest.py +++ b/bitbake/lib/toaster/tests/builds/buildtest.py | |||
@@ -88,7 +88,7 @@ def load_build_environment(): | |||
88 | class BuildTest(unittest.TestCase): | 88 | class BuildTest(unittest.TestCase): |
89 | 89 | ||
90 | PROJECT_NAME = "Testbuild" | 90 | PROJECT_NAME = "Testbuild" |
91 | BUILDDIR = "/tmp/build/" | 91 | BUILDDIR = os.environ.get("BUILDDIR") |
92 | 92 | ||
93 | def build(self, target): | 93 | def build(self, target): |
94 | # So that the buildinfo helper uses the test database' | 94 | # So that the buildinfo helper uses the test database' |
@@ -116,7 +116,7 @@ class BuildTest(unittest.TestCase): | |||
116 | project = Project.objects.create_project(name=BuildTest.PROJECT_NAME, | 116 | project = Project.objects.create_project(name=BuildTest.PROJECT_NAME, |
117 | release=release) | 117 | release=release) |
118 | 118 | ||
119 | passthrough_variable_names = ["SSTATE_DIR", "DL_DIR"] | 119 | passthrough_variable_names = ["SSTATE_DIR", "DL_DIR", "SSTATE_MIRRORS", "BB_HASHSERVE_UPSTREAM"] |
120 | for variable_name in passthrough_variable_names: | 120 | for variable_name in passthrough_variable_names: |
121 | current_variable = os.environ.get(variable_name) | 121 | current_variable = os.environ.get(variable_name) |
122 | if current_variable: | 122 | if current_variable: |
@@ -128,7 +128,7 @@ class BuildTest(unittest.TestCase): | |||
128 | if os.environ.get("TOASTER_TEST_USE_SSTATE_MIRROR"): | 128 | if os.environ.get("TOASTER_TEST_USE_SSTATE_MIRROR"): |
129 | ProjectVariable.objects.get_or_create( | 129 | ProjectVariable.objects.get_or_create( |
130 | name="SSTATE_MIRRORS", | 130 | name="SSTATE_MIRRORS", |
131 | value="file://.* http://sstate.yoctoproject.org/PATH;downloadfilename=PATH", | 131 | value="file://.* http://cdn.jsdelivr.net/yocto/sstate/all/PATH;downloadfilename=PATH", |
132 | project=project) | 132 | project=project) |
133 | 133 | ||
134 | ProjectTarget.objects.create(project=project, | 134 | ProjectTarget.objects.create(project=project, |