git-repo/tests
Raman Tenneti 6a872c9dae sync: Added --use-superproject option and support for superproject.
Added "--use-superporject" option to sync.py to fetch project SHAs from
superproject. If there are any missing projects in superprojects, it
prints the missing entries and exits. If there are no missing entries,
it will use SHAs from superproject to fetch the projects from git.

Tested the code with the following commands.

$ ./run_tests tests/test_manifest_xml.py
$ ./run_tests -v tests/test_git_superproject.py
$ ./run_tests -v

Tested the sync code by copying all the repo changes into my Android
AOSP checkout and adding <superporject> tag to default.xml. With
local modification to the code to print the status,

.../WORKING_DIRECTORY$ repo sync --use-superproject
repo: executing 'git clone' url: sso://android/platform/superproject
repo: executing 'git ls-tree'
Success: []

Bug: https://crbug.com/gerrit/13709
Tested-by: Raman Tenneti <rtenneti@google.com>
Change-Id: Id18665992428dd684c04b0e0b3a52f46316873a0
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/293822
Reviewed-by: Mike Frysinger <vapier@google.com>
2021-01-21 19:41:52 +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_git_command.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
test_git_config.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
test_git_superproject.py sync: Added --use-superproject option and support for superproject. 2021-01-21 19:41:52 +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 sync: Added --use-superproject option and support for superproject. 2021-01-21 19:41:52 +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 init: reject unknown args 2020-09-02 07:53:16 +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