summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py
diff options
context:
space:
mode:
authorAlassane Yattara <alassane.yattara@savoirfairelinux.com>2023-12-08 02:55:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-08 17:17:42 +0000
commit7fefb8588894b37ba8d7064385d10a2b7b568290 (patch)
tree7becb3f3770d85d8a0fab62e86767084548c9187 /bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py
parent6d91225651573ab19b81a4430bccfc85f05a8173 (diff)
downloadpoky-7fefb8588894b37ba8d7064385d10a2b7b568290.tar.gz
bitbake: toaster/tests: bug-fix tests writing files into /tmp on the autobuilders
- Use build directory instead of /tmp - Better handle delay between driver actions (Bitbake rev: 234b125c11e4cca015e4d54fbddbfd3d276b88f6) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py')
-rw-r--r--bitbake/lib/toaster/tests/browser/test_new_custom_image_page.py3
1 files changed, 2 insertions, 1 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 f4d95b1acd..4ad22c7aa7 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
@@ -45,10 +45,11 @@ class TestNewCustomImagePage(SeleniumTestCase):
45 ) 45 )
46 46
47 # add a fake image recipe to the layer that can be customised 47 # add a fake image recipe to the layer that can be customised
48 builldir = os.environ.get('BUILDDIR', './')
48 self.recipe = Recipe.objects.create( 49 self.recipe = Recipe.objects.create(
49 name='core-image-minimal', 50 name='core-image-minimal',
50 layer_version=layer_version, 51 layer_version=layer_version,
51 file_path='/tmp/core-image-minimal.bb', 52 file_path=f'{builldir}/core-image-minimal.bb',
52 is_image=True 53 is_image=True
53 ) 54 )
54 # create a tmp file for the recipe 55 # create a tmp file for the recipe