diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-08-10 12:21:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-17 14:41:41 +0100 |
commit | 11668e24e7f1c5efc26d355ef9f433b3bc2b49e7 (patch) | |
tree | 7d99710bb51196ae828c54c37ac5fd5c8d8626b2 /bitbake | |
parent | 77ca5518130a1be044c69c3a7c9ddfae63b56e67 (diff) | |
download | poky-11668e24e7f1c5efc26d355ef9f433b3bc2b49e7.tar.gz |
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>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/orm/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/tests.py b/bitbake/lib/toaster/orm/tests.py index df9a2a9f52..8bb5deca74 100644 --- a/bitbake/lib/toaster/orm/tests.py +++ b/bitbake/lib/toaster/orm/tests.py | |||
@@ -117,7 +117,7 @@ class LayerVersionEquivalenceTestCase(TestCase): | |||
117 | # getting the build layerversion equivalent list must return the same list as the original layer | 117 | # getting the build layerversion equivalent list must return the same list as the original layer |
118 | build_equivalent_list = self.layerversion_build.get_equivalents_wpriority(self.project) | 118 | build_equivalent_list = self.layerversion_build.get_equivalents_wpriority(self.project) |
119 | 119 | ||
120 | self.assertTrue(equivalent_list == build_equivalent_list, "%s is not %s" % (equivalent_list, build_equivalent_list)) | 120 | self.assertEqual(list(equivalent_list), list(build_equivalent_list)) |
121 | 121 | ||
122 | class ProjectLVSelectionTestCase(TestCase): | 122 | class ProjectLVSelectionTestCase(TestCase): |
123 | def setUp(self): | 123 | def setUp(self): |