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
Philipp Wollermann 0b943400a4 Execute Ninja / Siso directly from autoninja.py.
Instead of printing a command-line, we just directly call into the respective main functions from Python. This saves spawning another interpreter and prevents things that can go wrong from having to quote, unquote, split and tunnel arguments through shells.

Part of my bigger auto{ninja,siso} refactoring.

Tested:
- Handling of the ^^ suffix on Windows still works correctly.
- Handling of error codes - i.e.; making sure
  "autoninja base_unittests && base_unittests.exe" behaves properly
  in the success/failure case.
- Make sure the command prompt title is reliably reset on exit.

I tested autoninja with all combinations of these:
- Host platform: Linux, macOS, Windows
- Remote GN args: <none>, use_goma=true, use_remoteexec=true
- Siso GN args: <none>, use_siso=true
- Targets: base, ../../base/types/expected_macros_unittest.cc^ (on Linux) and ../../base/types/expected_macros_unittest.cc^^ (on Windows)

R=brucedawson@chromium.org, jwata@google.com, tikuta@chromium.org

Bug: b/293657720
Change-Id: I275a775fdc5abb6555f79d4beab76cd0914d4bd6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4924185
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Junji Watanabe <jwata@google.com>
Commit-Queue: Philipp Wollermann <philwo@chromium.org>
2 years ago
..
gstools
OWNERS
auth_test.py
autoninja_test.py
bazel_test.py
bot_update_coverage_test.py
cipd_bootstrap_test.py
detect_host_arch_test.py
download_from_google_storage_unittest.py
fetch_test.py
fix_encoding_test.py
gclient_cipd_smoketest.py
gclient_eval_unittest.py
gclient_git_mutates_smoketest.py
gclient_git_smoketest.py
gclient_no_sync_smoketest.py
gclient_paths_test.py
gclient_scm_test.py
gclient_smoketest.py
gclient_smoketest_base.py
gclient_test.py
gclient_transitions_smoketest.py
gclient_utils_test.py
gerrit_client_test.py
gerrit_util_test.py
git_cache_test.py
git_cl_creds_check_report.txt
git_cl_test.py
git_common_test.py
git_dates_test.py
git_find_releases_test.py
git_footers_test.py
git_hyper_blame_test.py
git_map_test.py
git_migrate_default_branch_test.py
git_number_test.py tests: switch to 4 space indent 2 years ago
git_rebase_update_test.py tests: switch to 4 space indent 2 years ago
gsutil_test.py
hooks_test.py
lockfile_test.py
metrics_test.py
my_activity_test.py
ninja_reclient_test.py
ninjalog_uploader_test.py
owners_client_test.py
owners_finder_test.py
presubmit_canned_checks_test.py
presubmit_unittest.py
rdb_wrapper_test.py
recipes_test.py
reclient_metrics_test.py
roll_dep_test.py
scm_unittest.py
split_cl_test.py
subcommand_test.py
subprocess2_test.py
upload_to_google_storage_unittest.py
utils_test.py
watchlists_unittest.py