summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com>2023-12-12 15:05:15 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-13 11:49:18 +0000
commit799c131d920283be464f561ca05eb790849739ff (patch)
tree6a6ff418378fe127b0f4caaa9969a1d1a4651326
parent8a7dffc2789a2205c5671b7878016ea6a49d639e (diff)
downloadpoky-799c131d920283be464f561ca05eb790849739ff.tar.gz
bitbake: toaster: remove test and update setup to avoid rebuilding image
Update build test to fix setUp, by including the built, the system was rebuilding the image on every test, causing the database to lock Delete test for unique order, this test was the only test using the self.built element and breaking the system. (Bitbake rev: 9f1ad015051d4a4b363787c4a1f2b943d55eb8cb) Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/toaster/tests/builds/test_core_image_min.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/bitbake/lib/toaster/tests/builds/test_core_image_min.py b/bitbake/lib/toaster/tests/builds/test_core_image_min.py
index dc1ad9da14..c5bfdbfbb5 100644
--- a/bitbake/lib/toaster/tests/builds/test_core_image_min.py
+++ b/bitbake/lib/toaster/tests/builds/test_core_image_min.py
@@ -27,7 +27,6 @@ class BuildCoreImageMinimal(BuildTest):
27 """Build core-image-minimal and test the results""" 27 """Build core-image-minimal and test the results"""
28 28
29 def setUp(self): 29 def setUp(self):
30 self.built = self.build("core-image-minimal")
31 self.completed_build = self.target_already_built("core-image-minimal") 30 self.completed_build = self.target_already_built("core-image-minimal")
32 31
33 # Check if build name is unique - tc_id=795 32 # Check if build name is unique - tc_id=795
@@ -47,17 +46,6 @@ class BuildCoreImageMinimal(BuildTest):
47 total_builds, 46 total_builds,
48 msg='Build cooker log path is not unique') 47 msg='Build cooker log path is not unique')
49 48
50 # Check if task order is unique for one build - tc=824
51 def test_Task_Unique_Order(self):
52 total_task_order = Task.objects.filter(
53 build=self.built).values('order').count()
54 distinct_task_order = Task.objects.filter(
55 build=self.completed_build).values('order').distinct().count()
56
57 self.assertNotEqual(total_task_order,
58 distinct_task_order,
59 msg='Errors task order is not unique')
60
61 # Check task order sequence for one build - tc=825 49 # Check task order sequence for one build - tc=825
62 def test_Task_Order_Sequence(self): 50 def test_Task_Order_Sequence(self):
63 cnt_err = [] 51 cnt_err = []