mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
custom-named-profiles: for 'cargo test' use "test" profile by default
This commit is contained in:
parent
04e80b5e7b
commit
e37253c871
@ -102,6 +102,9 @@ pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
|
||||
|
||||
let mut compile_opts = args.compile_options(config, CompileMode::Test, Some(&ws))?;
|
||||
|
||||
compile_opts.build_config.profile_kind =
|
||||
args.get_profile_kind(ProfileKind::Custom("test".to_owned()))?;
|
||||
|
||||
// `TESTNAME` is actually an argument of the test binary, but it's
|
||||
// important, so we explicitly mention it and reconfigure.
|
||||
let test_name: Option<&str> = args.value_of("TESTNAME");
|
||||
|
Loading…
x
Reference in New Issue
Block a user