You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/tests
Scott Lee 80d1969422 presubmit_diff: add support for -U
This is a reland of https://crrev.com/c/6168707 with fixes.
The CL adds a new param, unified, to git_diff() and create_diffs()
as a required param.

The functions themselves are tested in presubmit_diffs_test.py, but
their usages in presubmit_support.py were not, and the missing param
caused a failure in CiderG (b/389876151)

This CL basically carries the same patch, but makes the params
optional with a default value and adds unit tests for the usage
in presubmit_support.py

Tested with CiderG: https://screenshot.googleplex.com/PYEDZ3NGn5cYGtV


Change-Id: Ic747c6a133c016dbcd80034e521c76a3db3a3f60
Bug: 389876151, 379902295
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6182703
Commit-Queue: Scott Lee <ddoman@chromium.org>
Reviewed-by: Gary Tong <gatong@chromium.org>
8 months ago
..
gerrit_util_test.inputs
git_common_test.inputs Prefer direct git installation for Windows 10 months ago
gstools
.vpython3
OWNERS Remove brucedawson@ from some depot_tools OWNERS files 11 months ago
auth_test.py
autoninja_test.py autoninja: use build/toolchain/use_reclient_value.py 9 months ago
bazel_test.py
bot_update_coverage_test.py
build_telemetry_test.py build_telemetry: Set timeout to 'cipd auth-info' command. 12 months ago
cipd_bootstrap_test.py
detect_host_arch_test.py
download_from_google_storage_unittest.py
fetch_test.py
gclient_cipd_smoketest.py
gclient_eval_unittest.py
gclient_gcs_smoketest.py
gclient_git_mutates_smoketest.py
gclient_git_smoketest.py Update CMDgitmodules to set `gclient-recursedeps` in .gitmodules file. 11 months ago
gclient_no_sync_smoketest.py
gclient_paths_test.py
gclient_scm_test.py Avoid silently overwriting diff.ignoreSubmodules config. 12 months ago
gclient_smoketest.py
gclient_smoketest_base.py
gclient_test.py
gclient_transitions_smoketest.py
gclient_utils_test.py Explicitly propagate terminal size to gclient hooks. 8 months ago
gerrit_client_test.py gerrit: addmessage: support attention set control 8 months ago
gerrit_util_test.py [git-sso] Read sso helper output line by line 10 months ago
git_auth_test.py [git_auth] Add apply_global tests 1 year ago
git_cache_test.py
git_cl_creds_check_report.txt
git_cl_test.py split_cl: Make description file optional during dry runs 8 months ago
git_common_test.py Prefer direct git installation for Windows 10 months ago
git_dates_test.py
git_find_releases_test.py Skip tests not supported in non-git env if in non-git env 1 year ago
git_footers_test.py [git_footers] add support for multiline footers 9 months ago
git_hyper_blame_test.py
git_map_test.py
git_number_test.py Revert "[git-number] Remove unused git-number script." 1 year ago
git_rebase_update_test.py Remove "attempt to squash" behavior from `git rebase-update` 8 months ago
git_squash_branch_tree_test.py
gn_helper_test.py gn_helper: find correct directory for // 9 months ago
gsutil_test.py
hooks_test.py
lockfile_test.py
metrics_test.py [metrics] Add new auth metric 1 year ago
metrics_xml_format_test.py Reland "Support formatting metrics xml(s) in the subfolders." 8 months ago
my_activity_test.py
ninjalog_uploader_test.py ninjalog_uploader: Add is_cloudtop, gce_machine_type, is_cog to the Ninjalog metadata 11 months ago
owners_client_test.py
owners_finder_test.py
presubmit_canned_checks_test.py allow comment lines in inclusive_language_presubmit_exempt_dirs.txt 11 months ago
presubmit_diff_test.py presubmit_diff: add support for -U 8 months ago
presubmit_support_test.py presubmit_diff: add support for -U 8 months ago
presubmit_unittest.py pylintrc: version all of them 8 months ago
rdb_wrapper_test.py
recipes_test.py
reclient_helper_test.py
roll_dep_test.py
roll_downstream_gcs_deps_test.py Update roll_downstream_gcs_deps to take a list of source and destination packages. 12 months ago
scm_mock.py [scm_mock] Expose mocking of system config layer. 1 year ago
scm_unittest.py [scm] Handle empty .gitmodules file 11 months ago
split_cl_test.py Fix argument mismatch in split_cl.py 8 months ago
subcommand_test.py
subprocess2_test.py
upload_to_google_storage_first_class_unittest.py
upload_to_google_storage_unittest.py
utils_test.py
watchlists_unittest.py