summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlassane Yattara <alassane.yattara@savoirfairelinux.com>2023-10-17 21:48:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-23 11:46:36 +0100
commit2403af653308e5b043071fc57c23e72c9e8fe6e8 (patch)
treeab2b591485e2bb885f8d0acae0f2bbc21c7f73de
parentb879dc5d9ab96798304742bb2de381ed71cb20a4 (diff)
downloadpoky-2403af653308e5b043071fc57c23e72c9e8fe6e8.tar.gz
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>
-rw-r--r--bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py b/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py
index 6361f40347..34d1bd45c7 100644
--- a/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py
+++ b/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py
@@ -48,8 +48,12 @@ class TestNewCustomImagePage(SeleniumTestCase):
48 self.recipe = Recipe.objects.create( 48 self.recipe = Recipe.objects.create(
49 name='core-image-minimal', 49 name='core-image-minimal',
50 layer_version=layer_version, 50 layer_version=layer_version,
51 file_path='/tmp/core-image-minimal.bb',
51 is_image=True 52 is_image=True
52 ) 53 )
54 # create a tmp file for the recipe
55 with open(self.recipe.file_path, 'w') as f:
56 f.write('foo')
53 57
54 # another project with a custom image already in it 58 # another project with a custom image already in it
55 project2 = Project.objects.create(name='whoop', release=release) 59 project2 = Project.objects.create(name='whoop', release=release)