mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-13 01:54:59 +08:00
Merge #482 Fix another place where tests depend on the right ordering in lists
This commit is contained in:
@@ -276,12 +276,12 @@ class TestBuild(unittest.TestCase):
|
||||
# Check that the components are added to buildroot after the batch
|
||||
# is built.
|
||||
buildroot_groups = []
|
||||
buildroot_groups.append([u'module-build-macros-0.1-1.module_fc4ed5f7.src.rpm-1-1'])
|
||||
buildroot_groups.append([u'perl-Tangerine?#f25-1-1', u'perl-List-Compare?#f25-1-1'])
|
||||
buildroot_groups.append([u'tangerine?#f25-1-1'])
|
||||
buildroot_groups.append(set([u'module-build-macros-0.1-1.module_fc4ed5f7.src.rpm-1-1']))
|
||||
buildroot_groups.append(set([u'perl-Tangerine?#f25-1-1', u'perl-List-Compare?#f25-1-1']))
|
||||
buildroot_groups.append(set([u'tangerine?#f25-1-1']))
|
||||
|
||||
def on_buildroot_add_artifacts_cb(cls, artifacts, install):
|
||||
self.assertEqual(buildroot_groups.pop(0), artifacts)
|
||||
self.assertEqual(buildroot_groups.pop(0), set(artifacts))
|
||||
|
||||
TestModuleBuilder.on_buildroot_add_artifacts_cb = on_buildroot_add_artifacts_cb
|
||||
|
||||
|
||||
Reference in New Issue
Block a user