Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 20 additions & 8 deletions tools/ci/src/commands/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,26 @@ impl Prepare for TestCommand {
let jobs = args.build_jobs();
let test_threads = args.test_threads();

vec![PreparedCommand::new::<Self>(
cmd!(
sh,
// `--benches` runs each benchmark once in order to verify that they behave
// correctly and do not panic.
"cargo test --workspace --lib --bins --tests --benches {no_fail_fast...} {jobs...} -- {test_threads...}"
let jobs_ref = &jobs;
let test_threads_ref = &test_threads;

vec![
PreparedCommand::new::<Self>(
cmd!(
sh,
"cargo test --workspace --lib --bins --tests {no_fail_fast...} {jobs_ref...} -- {test_threads_ref...}"
),
"Please fix failing tests in output above.",
),
"Please fix failing tests in output above.",
)]
PreparedCommand::new::<Self>(
cmd!(
sh,
// `--benches` runs each benchmark once in order to verify that they behave
// correctly and do not panic.
"cargo test --workspace --benches {no_fail_fast...} {jobs...}"
),
"Please fix failing tests in output above.",
)
]
}
}
Loading