Skip to content

Commit

Permalink
Force --no-default-features when executing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
syl20bnr committed Dec 3, 2024
1 parent 9708458 commit 913fa46
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions xtask/src/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pub(crate) mod bindgen;
pub(crate) mod test;
6 changes: 6 additions & 0 deletions xtask/src/commands/test.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use tracel_xtask::prelude::*;

pub(crate) fn handle_command(mut args: TestCmdArgs) -> anyhow::Result<()> {
args.no_default_features = true;
base_commands::test::handle_command(args)
}
1 change: 1 addition & 0 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ fn main() -> anyhow::Result<()> {
let args = init_xtask::<Command>()?;
match args.command {
Command::Bindgen(cmd_args) => commands::bindgen::handle_command(cmd_args),
Command::Test(cmd_args) => commands::test::handle_command(cmd_args),
_ => dispatch_base_commands(args),
}?;
let duration = start.elapsed();
Expand Down

0 comments on commit 913fa46

Please sign in to comment.