diff options
author | LaMont Jones <lamontjones@google.com> | 2022-11-08 00:54:56 +0000 |
---|---|---|
committer | LaMont Jones <lamontjones@google.com> | 2022-11-08 00:54:56 +0000 |
commit | 5fb9c6a5b35220e27b3acd5861318584588cd0d8 (patch) | |
tree | d3d3a7d6d021e1547d9f22875aea57a717540f92 /tests/test_manifest_xml.py | |
parent | 859d3d958057e35b618e8cca209a85317d49a974 (diff) | |
download | git-repo-5fb9c6a5b35220e27b3acd5861318584588cd0d8.tar.gz |
v2.29.7: Revert back to v2.29.5v2.29.7
This change reverts stable to v2.29.5, to fix clients that received
v2.29.6, and keep future updates simpler.
Change-Id: I2f5c52c466b7321665c9699ccdbf98f928483fee
Diffstat (limited to 'tests/test_manifest_xml.py')
-rw-r--r-- | tests/test_manifest_xml.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/test_manifest_xml.py b/tests/test_manifest_xml.py index f92108e1..e181b642 100644 --- a/tests/test_manifest_xml.py +++ b/tests/test_manifest_xml.py | |||
@@ -23,7 +23,6 @@ import xml.dom.minidom | |||
23 | 23 | ||
24 | import error | 24 | import error |
25 | import manifest_xml | 25 | import manifest_xml |
26 | import repo_trace | ||
27 | 26 | ||
28 | 27 | ||
29 | # Invalid paths that we don't want in the filesystem. | 28 | # Invalid paths that we don't want in the filesystem. |
@@ -94,7 +93,6 @@ class ManifestParseTestCase(unittest.TestCase): | |||
94 | def setUp(self): | 93 | def setUp(self): |
95 | self.tempdirobj = tempfile.TemporaryDirectory(prefix='repo_tests') | 94 | self.tempdirobj = tempfile.TemporaryDirectory(prefix='repo_tests') |
96 | self.tempdir = self.tempdirobj.name | 95 | self.tempdir = self.tempdirobj.name |
97 | repo_trace._TRACE_FILE = os.path.join(self.tempdir, 'TRACE_FILE_from_test') | ||
98 | self.repodir = os.path.join(self.tempdir, '.repo') | 96 | self.repodir = os.path.join(self.tempdir, '.repo') |
99 | self.manifest_dir = os.path.join(self.repodir, 'manifests') | 97 | self.manifest_dir = os.path.join(self.repodir, 'manifests') |
100 | self.manifest_file = os.path.join( | 98 | self.manifest_file = os.path.join( |
@@ -264,10 +262,10 @@ class XmlManifestTests(ManifestParseTestCase): | |||
264 | '<project name="r" groups="keep"/>' | 262 | '<project name="r" groups="keep"/>' |
265 | '</manifest>') | 263 | '</manifest>') |
266 | self.assertEqual( | 264 | self.assertEqual( |
267 | sort_attributes(manifest.ToXml(omit_local=True).toxml()), | 265 | manifest.ToXml(omit_local=True).toxml(), |
268 | '<?xml version="1.0" ?><manifest>' | 266 | '<?xml version="1.0" ?><manifest>' |
269 | '<remote fetch=".." name="a"/><default remote="a" revision="r"/>' | 267 | '<remote name="a" fetch=".."/><default remote="a" revision="r"/>' |
270 | '<project name="q"/><project groups="keep" name="r"/></manifest>') | 268 | '<project name="q"/><project name="r" groups="keep"/></manifest>') |
271 | 269 | ||
272 | def test_toxml_with_local(self): | 270 | def test_toxml_with_local(self): |
273 | """Does include local_manifests projects when omit_local=False.""" | 271 | """Does include local_manifests projects when omit_local=False.""" |
@@ -279,11 +277,11 @@ class XmlManifestTests(ManifestParseTestCase): | |||
279 | '<project name="r" groups="keep"/>' | 277 | '<project name="r" groups="keep"/>' |
280 | '</manifest>') | 278 | '</manifest>') |
281 | self.assertEqual( | 279 | self.assertEqual( |
282 | sort_attributes(manifest.ToXml(omit_local=False).toxml()), | 280 | manifest.ToXml(omit_local=False).toxml(), |
283 | '<?xml version="1.0" ?><manifest>' | 281 | '<?xml version="1.0" ?><manifest>' |
284 | '<remote fetch=".." name="a"/><default remote="a" revision="r"/>' | 282 | '<remote name="a" fetch=".."/><default remote="a" revision="r"/>' |
285 | '<project groups="local::me" name="p"/>' | 283 | '<project name="p" groups="local::me"/>' |
286 | '<project name="q"/><project groups="keep" name="r"/></manifest>') | 284 | '<project name="q"/><project name="r" groups="keep"/></manifest>') |
287 | 285 | ||
288 | def test_repo_hooks(self): | 286 | def test_repo_hooks(self): |
289 | """Check repo-hooks settings.""" | 287 | """Check repo-hooks settings.""" |