mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
test_bad_path_name_checks: allow Windows path sep
With this change if a path ends with '/' on Linux/macOS and ends with either '/' or '\' on Windows, the test will pass. Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com> Change-Id: Id7d1b134f9c0bdf7ceaf149af304bbf90cbd7b21 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353180 Reviewed-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
parent
003684b6e5
commit
3593a10643
@ -578,7 +578,7 @@ class ProjectElementTests(ManifestParseTestCase):
|
|||||||
parse('', 'ok')
|
parse('', 'ok')
|
||||||
|
|
||||||
for path in INVALID_FS_PATHS:
|
for path in INVALID_FS_PATHS:
|
||||||
if not path or path.endswith('/'):
|
if not path or path.endswith('/') or path.endswith(os.path.sep):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
with self.assertRaises(error.ManifestInvalidPathError):
|
with self.assertRaises(error.ManifestInvalidPathError):
|
||||||
|
Loading…
Reference in New Issue
Block a user