git-repo/tests
Mike Frysinger a00c5f40e7 manifest: refactor the filesystem checking logic for more reuse
This function is currently written with copyfile & linkfile in mind.
Generalize the logic & function arguments slightly so we can reuse
in more places that make sense.

This changes the validation logic slightly too in that we no longer
allow "." for the dest attribute with copyfile & linkfile, nor for
the src attribute with copyfile.  We already rejected those later on
when checking against the active filesystem, but now we reject them
a little sooner when parsing.

The empty path check isn't a new requirement exactly -- repo used to
crash on it, so it was effectively blocked, but now we diagnosis it.

Bug: https://crbug.com/gerrit/14156
Change-Id: I0fdb42a3da60ed149ff1997c5dd4b85da70eec3d
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/298442
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
2021-02-28 16:07:12 +00:00
..
fixtures git_config: add GetInt helper 2020-02-19 23:09:05 +00:00
test_editor.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
test_error.py error: fix pickling of all exceptions 2021-02-19 20:06:03 +00:00
test_git_command.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
test_git_config.py git_config: add SetBoolean helper 2021-02-11 01:48:12 +00:00
test_git_superproject.py sync: superproject - support for switching hosts and switching branches. 2021-02-25 20:45:26 +00:00
test_git_trace2_event_log.py Update "evt" field to be logged as a string type. 2021-01-19 20:35:56 +00:00
test_hooks.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
test_manifest_xml.py manifest: refactor the filesystem checking logic for more reuse 2021-02-28 16:07:12 +00:00
test_project.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
test_subcmds_init.py tests: fix init subcmd after url change 2021-02-25 17:07:11 +00:00
test_subcmds.py init: reject unknown args 2020-09-02 07:53:16 +00:00
test_wrapper.py launcher: add a requirements framework to declare version dependencies 2021-01-19 16:48:21 +00:00