cargo/tests/testsuite
Eric Holk 40c51392dd Fix new::git_default_branch with different default
The test new::git_default_branch would fail if the current user had
already configured a different default branch.

This patch changes the test to first write a .gitconfig file with the
default branch set to master. This puts us in a state where we still
have the old default, and then the subsequent change to the config file
will make sure that config changes are still respected.
2022-01-18 14:51:21 -08:00
..
mock-std
advanced_env.rs
alt_registry.rs Add rust_metadata to SerializedPackage 2021-10-12 14:07:19 +02:00
bad_config.rs Remove TOML incompatibility hacks 2021-09-21 14:48:18 -05:00
bad_manifest_path.rs track_caller on custom assert functions 2021-03-03 17:17:07 +00:00
bench.rs Remove with_either_contains. 2021-06-16 09:44:29 -07:00
binary_name.rs Ability to specify the output name for a bin target different from the crate name 2021-08-11 10:36:16 -07:00
build.rs Auto merge of #10243 - hi-rustin:rustin-patch-collision, r=ehuss 2022-01-18 17:39:35 +00:00
build_plan.rs
build_script.rs Test IO error resilience while walking directories 2022-01-05 14:29:59 +08:00
build_script_env.rs Fix tests 2021-04-17 12:13:30 -04:00
build_script_extra_link_arg.rs Add rustc-link-args to doctest build 2021-10-14 10:24:16 +09:00
cache_messages.rs Deduplicate compiler diagnostics. 2021-07-09 16:20:46 -07:00
cargo_alias_config.rs Add test for alias shadowing external subcommand 2021-11-17 09:23:06 +01:00
cargo_command.rs Make levenshtein distance case insensitive. 2021-12-21 12:56:28 +01:00
cargo_config.rs Upgrade to Clap 3 2022-01-05 19:54:54 -06:00
cargo_env_config.rs Stabilize [env] sections 2021-07-29 19:50:51 -07:00
cargo_features.rs Refine name 2021-07-25 00:35:09 +08:00
cargo_targets.rs Warn if an "all" target is specified, but we don't match anything 2021-06-09 19:29:24 +02:00
cfg.rs Fix issue with filtering exclusive target dependencies. 2021-03-11 11:41:00 -08:00
check.rs Combine rustc and cargo's diagnostic summaries 2021-07-06 19:46:27 -04:00
clean.rs Use is_symlink() method 2022-01-14 00:36:24 +03:00
collisions.rs Fix collision doc tests randomly failing. 2021-04-29 10:42:42 -07:00
concurrent.rs
config.rs feat: support rustflags per profile 2022-01-09 11:35:15 -06:00
config_cli.rs Support term.quiet configuration 2021-12-03 06:25:02 +00:00
config_include.rs Fix config includes not working. 2021-03-24 20:21:09 -07:00
corrupt_git.rs Move paths to cargo-util. 2021-03-20 17:42:41 -07:00
credential_process.rs Match any error when failing to find executables 2021-11-17 11:09:52 +00:00
cross_compile.rs Add a note about doctest xcompile. 2021-11-28 17:32:11 -08:00
cross_publish.rs Update tests to use registry names 2021-07-22 00:50:30 +08:00
custom_target.rs Detect changes for JSON spec targets. 2021-03-01 12:19:14 -08:00
death.rs
dep_info.rs Fix dep-info files including non-local build script paths. 2021-06-17 18:28:42 -07:00
directory.rs Update tests to use registry names 2021-07-22 00:50:30 +08:00
doc.rs add open_no_doc_crate test 2021-12-16 22:29:32 +08:00
edition.rs Update nightly failure notification. 2021-07-05 16:08:36 -07:00
error.rs
features.rs Stabilize namespaced and weak dependency features. 2022-01-06 15:56:56 -08:00
features2.rs Remove nbsp characters. 2021-07-30 15:40:37 -07:00
features_namespaced.rs Stabilize namespaced and weak dependency features. 2022-01-06 15:56:56 -08:00
fetch.rs
fix.rs Bump to 0.59.0 2021-10-22 07:53:17 -07:00
freshness.rs Update test 2021-07-05 18:28:21 +02:00
future_incompat_report.rs Stabilize future-incompat-report 2021-12-05 14:14:32 -05:00
generate_lockfile.rs
git.rs Fix fetching git repos after a force push. 2021-10-18 14:08:33 -07:00
git_auth.rs
git_gc.rs
glob_targets.rs Change Fixing to Fixed, and add a verbose "Fixing". 2021-02-17 20:41:38 -08:00
help.rs fix panic if an alias is defined to "" 2021-12-12 13:30:31 -07:00
init.rs Update test output for hint on project creation [bin] -> [[bin]] 2021-09-06 15:51:33 +08:00
install.rs Add --message-format for install 2021-11-21 12:16:50 +08:00
install_upgrade.rs Make windows CI happy 2021-08-31 16:54:16 +08:00
jobserver.rs
list_availables.rs
local_registry.rs Update tests to use registry names 2021-07-22 00:50:30 +08:00
locate_project.rs Remove the double-backslash escape for matching. 2021-06-16 09:44:29 -07:00
lockfile_compat.rs Adjust error message with offline and frozen. 2021-07-01 16:59:19 -07:00
login.rs fix some bugs 2021-12-01 11:21:06 +08:00
logout.rs Add RegistryBuilder to help initializing test registries. 2021-02-02 15:48:48 -08:00
lto.rs Fix some tests with output collisions. 2021-11-29 11:04:08 -08:00
main.rs Ability to specify the output name for a bin target different from the crate name 2021-08-11 10:36:16 -07:00
member_discovery.rs
member_errors.rs
message_format.rs Bump to 0.54.0 2021-03-26 12:28:47 -07:00
messages.rs Add test demonstrating deduplication of errors. 2021-07-15 17:37:21 -07:00
metabuild.rs Update nightly failure notification. 2021-07-05 16:08:36 -07:00
metadata.rs Upgrade to Clap 3 2022-01-05 19:54:54 -06:00
minimal_versions.rs
multitarget.rs fix clippy warnings 2021-04-02 12:30:36 +02:00
net_config.rs
new.rs Fix new::git_default_branch with different default 2022-01-18 14:51:21 -08:00
offline.rs Update tests to use registry names 2021-07-22 00:50:30 +08:00
old_cargos.rs Stabilize namespaced and weak dependency features. 2022-01-06 15:56:56 -08:00
out_dir.rs Add split-debuginfo profile option 2021-02-01 09:21:36 -08:00
owner.rs Minor update to registry API error messages. 2021-02-27 12:38:17 -08:00
package.rs Test IO error resilience while walking directories 2022-01-05 14:29:59 +08:00
package_features.rs Auto merge of #9420 - In-line:unknown-features-suggestions-in-workspace, r=ehuss 2021-06-01 15:41:27 +00:00
patch.rs Improve unused patch message when source URLs mismatched 2021-11-28 09:20:06 +08:00
path.rs Update tests to display dep-req info for dep-chain 2021-08-24 00:39:38 +08:00
paths.rs Replace deprecated [replace] references with [patch] 2021-06-02 12:30:56 +02:00
pkgid.rs teset(pkgid): suggestion for bad parsing 2021-03-02 16:18:21 +08:00
plugins.rs Fix plugin registrar change. 2021-08-14 15:31:06 -07:00
proc_macro.rs Fix plugin registrar change. 2021-08-14 15:31:06 -07:00
profile_config.rs Stabilize named profiles. 2021-09-24 10:00:42 -07:00
profile_custom.rs Add future compatibility warning on mixture of --release with --profile. 2021-09-24 10:59:00 -07:00
profile_overrides.rs
profile_targets.rs Stabilize named profiles. 2021-09-24 10:00:42 -07:00
profiles.rs Bump to 0.61.0 2022-01-14 10:57:54 -08:00
progress.rs
pub_priv.rs Update nightly failure notification. 2021-07-05 16:08:36 -07:00
publish.rs modify test 2021-12-02 19:55:56 +08:00
publish_lockfile.rs Update tests to use registry names 2021-07-22 00:50:30 +08:00
read_manifest.rs Add rust_metadata to SerializedPackage 2021-10-12 14:07:19 +02:00
registry.rs Update tests to display dep-req info for dep-chain 2021-08-24 00:39:38 +08:00
rename_deps.rs Remove more unused code 2021-10-12 14:22:17 -07:00
replace.rs Auto merge of #9681 - hi-rustin:rustin-patch-reject, r=ehuss 2021-07-23 18:53:25 +00:00
required_features.rs fix test suite 2021-02-21 14:37:42 -08:00
run.rs Upgrade to Clap 3 2022-01-05 19:54:54 -06:00
rust_version.rs Stabilize rust-version 2021-08-02 13:38:58 +02:00
rustc.rs Upgrade to Clap 3 2022-01-05 19:54:54 -06:00
rustc_info_cache.rs Don't re-use rustc cache when RUSTC_WRAPPER changes 2021-04-16 20:08:11 +03:00
rustdoc.rs Update rustdoc tests with -Cmetadata flag 2021-10-12 19:33:23 -07:00
rustdoc_extern_html.rs Temporarily disable extern-html-root-url test. 2021-08-22 09:24:46 -07:00
rustdocflags.rs
rustflags.rs
search.rs delete --host command and message 2021-12-01 10:29:46 +08:00
shell_quoting.rs
standard_lib.rs Fix panic with build-std of a proc-macro. 2021-08-23 12:06:32 -07:00
test.rs doc test supports silent output 2021-07-27 15:49:59 +08:00
timings.rs
tool_paths.rs Match any error when failing to find executables 2021-11-17 11:09:52 +00:00
tree.rs Fix resolve error with cyclic dev-dependency features. 2021-11-19 18:10:10 -08:00
tree_graph_features.rs
unit_graph.rs Fix test 2021-08-05 17:17:50 +02:00
update.rs Add rust_metadata to SerializedPackage 2021-10-12 14:07:19 +02:00
vendor.rs Do not suggest source config if nothing to vendor 2021-12-05 00:10:09 +08:00
verify_project.rs Remove the double-backslash escape for matching. 2021-06-16 09:44:29 -07:00
version.rs Add os to verbose version string. 2021-10-11 11:22:48 -07:00
warn_on_failure.rs
weak_dep_features.rs Stabilize namespaced and weak dependency features. 2022-01-06 15:56:56 -08:00
workspaces.rs fix: more error context for missing dep of workspace member 2021-04-17 14:24:29 +08:00
yank.rs Minor update to registry API error messages. 2021-02-27 12:38:17 -08:00