bitbake: toaster: fix test_build_layerversion test case

The reason of test failure is that Django querysets are
different even if they contain the same objects.

Fixed by converting querysets into lists.

(Bitbake rev: c1abc6f0905e4321668a483a3d5be7cef3c25401)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh
2015-08-10 12:21:25 +01:00
committed by Richard Purdie
parent 77ca551813
commit 11668e24e7

View File

@@ -117,7 +117,7 @@ class LayerVersionEquivalenceTestCase(TestCase):
# getting the build layerversion equivalent list must return the same list as the original layer
build_equivalent_list = self.layerversion_build.get_equivalents_wpriority(self.project)
self.assertTrue(equivalent_list == build_equivalent_list, "%s is not %s" % (equivalent_list, build_equivalent_list))
self.assertEqual(list(equivalent_list), list(build_equivalent_list))
class ProjectLVSelectionTestCase(TestCase):
def setUp(self):