diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/orm/tests.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/bitbake/lib/toaster/orm/tests.py b/bitbake/lib/toaster/orm/tests.py index 168bafa1de..6837038781 100644 --- a/bitbake/lib/toaster/orm/tests.py +++ b/bitbake/lib/toaster/orm/tests.py | |||
@@ -166,20 +166,3 @@ class ProjectLVSelectionTestCase(TestCase): | |||
166 | self.assertTrue(len(compatible_layerversions) == 1) | 166 | self.assertTrue(len(compatible_layerversions) == 1) |
167 | self.assertTrue(compatible_layerversions[0] == self.lver) | 167 | self.assertTrue(compatible_layerversions[0] == self.lver) |
168 | 168 | ||
169 | |||
170 | def test_dual_layersource(self): | ||
171 | # if we have two layers with the same name, from different layer sources, we expect both layers in, in increasing priority of the layer source | ||
172 | ls2 = LayerSource.objects.create(name = "dummy-layersource2", sourcetype = LayerSource.TYPE_LOCAL, apiurl="testing") | ||
173 | |||
174 | # assign a lower priority for the second layer source | ||
175 | Release.objects.get(name="default-release").releaselayersourcepriority_set.create(layer_source = ls2, priority = 2) | ||
176 | |||
177 | # create a new layer_version for a layer with the same name coming from the second layer source | ||
178 | self.layer2 = Layer.objects.create(name="meta-testlayer", layer_source = ls2) | ||
179 | self.layerversion2 = Layer_Version.objects.create(layer = self.layer2, layer_source = ls2, up_branch = self.branch) | ||
180 | |||
181 | # expect two layer versions, in the priority order | ||
182 | equivalent_list = self.project.compatible_layerversions() | ||
183 | self.assertTrue(len(equivalent_list) == 2) | ||
184 | self.assertTrue(equivalent_list[0] == self.layerversion2) | ||
185 | self.assertTrue(equivalent_list[1] == self.lver) | ||