mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 15:29:40 +01:00
bitbake: Toaster: bug-fix on custom image test cases
To test custom image creation, a file for base_recipe should exists otherwise test fail, User we need to build a base image first, that will create a file for base_recipe, which take a while. To avoid test dependencies between test and run build, i create a tmp file for base recipe. Signed-off-by Alassane Yattara <alassane.yattara@savoirfairelinux.com> (Bitbake rev: 99c24df73831a72f311090b3aebcf3cc4e86851a) Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b879dc5d9a
commit
2403af6533
@@ -48,8 +48,12 @@ class TestNewCustomImagePage(SeleniumTestCase):
|
||||
self.recipe = Recipe.objects.create(
|
||||
name='core-image-minimal',
|
||||
layer_version=layer_version,
|
||||
file_path='/tmp/core-image-minimal.bb',
|
||||
is_image=True
|
||||
)
|
||||
# create a tmp file for the recipe
|
||||
with open(self.recipe.file_path, 'w') as f:
|
||||
f.write('foo')
|
||||
|
||||
# another project with a custom image already in it
|
||||
project2 = Project.objects.create(name='whoop', release=release)
|
||||
|
||||
Reference in New Issue
Block a user