From 22dab2a29a390cf7ddaf999ae61d53aacfc5b3f5 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Mon, 2 Dec 2024 17:35:18 -0500 Subject: [PATCH] Actually pass no-default-features to test command --- crates/tracel-xtask/src/commands/test.rs | 3 +++ xtask/src/commands/extended_test_args.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/tracel-xtask/src/commands/test.rs b/crates/tracel-xtask/src/commands/test.rs index 9d78696..83daa15 100644 --- a/crates/tracel-xtask/src/commands/test.rs +++ b/crates/tracel-xtask/src/commands/test.rs @@ -49,6 +49,9 @@ fn push_optional_args(cmd_args: &mut Vec, args: &TestCmdArgs) { cmd_args.extend(vec!["--features".to_string(), features.join(",")]); } } + if args.no_default_features { + cmd_args.push("--no-default-features".to_string()); + } // test harness options cmd_args.extend(vec!["--".to_string(), "--color=always".to_string()]); if let Some(threads) = &args.threads { diff --git a/xtask/src/commands/extended_test_args.rs b/xtask/src/commands/extended_test_args.rs index 52345fe..5d34fd8 100644 --- a/xtask/src/commands/extended_test_args.rs +++ b/xtask/src/commands/extended_test_args.rs @@ -14,7 +14,7 @@ pub fn handle_command(args: ExtendedTestArgsCmdArgs) -> anyhow::Result<()> { } else { println!("debug disabled"); } - // We don't run the actual tests as it creates an infinite loop while executing the integraton tests. + // We don't run the actual tests as it creates an infinite loop while executing the integration tests. // base_commands::test::handle_command(args.try_into().unwrap()) Ok(()) }