git-repo/tests
Mike Frysinger bb8ee7f54a manifest_xml: unify bool & int parsing
We've been overly lenient with boolean parsing by ignoring invalid
values as "false" even if the user didn't intend that.  Turn all
unknown values into warnings to avoid breaking existing manifests,
and unify the parsing logic in a helper to simplify.

We've been stricter about numbers, but still copying & pasting
inconsistent code.  Add a helper for this too.  For out of range
sync-j numbers (i.e. less than 1), throw a warning for now, but
mark it for future hard failures.

Change-Id: I924162b8036e6a5f1e31b6ebb24b6a26ed63712d
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/256457
Reviewed-by: Michael Mortensen <mmortensen@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
2020-03-13 18:48:52 +00:00
..
fixtures git_config: add GetInt helper 2020-02-19 23:09:05 +00:00
test_editor.py upload/editor: fix bytes/string confusion 2019-11-16 23:55:30 +00:00
test_git_command.py tests: add git_require coverage 2020-02-20 06:55:22 +00:00
test_git_config.py git_config: add GetInt helper 2020-02-19 23:09:05 +00:00
test_manifest_xml.py manifest_xml: unify bool & int parsing 2020-03-13 18:48:52 +00:00
test_project.py manifest/tests: get them passing under Windows 2020-02-21 05:17:05 +00:00
test_wrapper.py repo: rework parser setup to handle init -c 2020-02-14 05:52:17 +00:00