summaryrefslogtreecommitdiffstats
path: root/tests/test_manifest_xml.py
diff options
context:
space:
mode:
authorPeter Kjellerstedt <pkj@axis.com>2025-11-08 02:36:56 +0100
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2025-11-26 02:08:07 -0800
commit75773b8b9d265bc8ef113586be5c3e2d36250983 (patch)
treea8525157425c4732962f89cdbd0315a9c9a46dbe /tests/test_manifest_xml.py
parent412367bfafd9de014cfeb37475e0f97b1f6a2509 (diff)
downloadgit-repo-75773b8b9d265bc8ef113586be5c3e2d36250983.tar.gz
manifest, project: Store project groups as sets
This helps a lot when including common manifests with groups and they use extend-project. Change-Id: Ic574e7d6696139d0eb90d9915e8c7048d5e89c07 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/525323 Reviewed-by: Gavin Mak <gavinmak@google.com> Tested-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Reviewed-by: Mike Frysinger <vapier@google.com> Commit-Queue: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Diffstat (limited to 'tests/test_manifest_xml.py')
-rw-r--r--tests/test_manifest_xml.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_manifest_xml.py b/tests/test_manifest_xml.py
index f5991515..960d0cd8 100644
--- a/tests/test_manifest_xml.py
+++ b/tests/test_manifest_xml.py
@@ -605,12 +605,12 @@ class ProjectElementTests(ManifestParseTestCase):
605 manifest.projects[0].name: manifest.projects[0].groups, 605 manifest.projects[0].name: manifest.projects[0].groups,
606 manifest.projects[1].name: manifest.projects[1].groups, 606 manifest.projects[1].name: manifest.projects[1].groups,
607 } 607 }
608 self.assertCountEqual( 608 self.assertEqual(
609 result["test-name"], ["name:test-name", "all", "path:test-path"] 609 result["test-name"], {"name:test-name", "all", "path:test-path"}
610 ) 610 )
611 self.assertCountEqual( 611 self.assertEqual(
612 result["extras"], 612 result["extras"],
613 ["g1", "g2", "g1", "name:extras", "all", "path:path"], 613 {"g1", "g2", "name:extras", "all", "path:path"},
614 ) 614 )
615 groupstr = "default,platform-" + platform.system().lower() 615 groupstr = "default,platform-" + platform.system().lower()
616 self.assertEqual(groupstr, manifest.GetGroupsStr()) 616 self.assertEqual(groupstr, manifest.GetGroupsStr())