summaryrefslogtreecommitdiffstats
path: root/tests/test_manifest_xml.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2020-02-10 17:10:03 -0500
committerMike Frysinger <vapier@google.com>2020-02-10 23:19:31 +0000
commitae625410057cdf8e905282161af7cf1b353d3cc3 (patch)
tree8751e4e6ba3ca707647ea6bfd7787a2fb611cd59 /tests/test_manifest_xml.py
parent83a3227b62c936b346b825b333fc2ca65528ecfd (diff)
downloadgit-repo-ae625410057cdf8e905282161af7cf1b353d3cc3.tar.gz
manifest_xml: allow src=. with symlinks
Some Android/Nest manifests are using <linkfile> with src="." to create stable paths to specific projects. Allow that specific use case as it seems reasonable to support. Bug: https://crbug.com/gerrit/11218 Change-Id: I5eadec257cd58ba0f8687c590ddc250a7a414a85 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254276 Reviewed-by: Michael Mortensen <mmortensen@google.com> Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'tests/test_manifest_xml.py')
-rw-r--r--tests/test_manifest_xml.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_manifest_xml.py b/tests/test_manifest_xml.py
index ecc84ad7..b6ec5b86 100644
--- a/tests/test_manifest_xml.py
+++ b/tests/test_manifest_xml.py
@@ -49,6 +49,8 @@ class ManifestValidateFilePaths(unittest.TestCase):
49 # We allow symlinks to end in a slash since we allow them to point to dirs 49 # We allow symlinks to end in a slash since we allow them to point to dirs
50 # in general. Technically the slash isn't necessary. 50 # in general. Technically the slash isn't necessary.
51 check('foo/', 'bar') 51 check('foo/', 'bar')
52 # We allow a single '.' to get a reference to the project itself.
53 check('.', 'bar')
52 54
53 def test_bad_paths(self): 55 def test_bad_paths(self):
54 """Make sure bad paths (src & dest) are rejected.""" 56 """Make sure bad paths (src & dest) are rejected."""