diff options
| author | Henrik Tjäder <henrik@tjaders.com> | 2025-06-08 18:18:01 +0200 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2025-06-15 09:58:25 +0000 |
| commit | 90bb3249069cca053e7fd177f191b3d06fc06527 (patch) | |
| tree | c9251413b6474028d88474caf38167c8948448a4 /xtask/src/run.rs | |
| parent | 6a68e8e54d2b006a888edab0f75e99a04675bb0a (diff) | |
xtask: Add --loom argument to test
For now filter to only rtic-sync in ci subcommand
Diffstat (limited to 'xtask/src/run.rs')
| -rw-r--r-- | xtask/src/run.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xtask/src/run.rs b/xtask/src/run.rs index 55ad44c..a1222d4 100644 --- a/xtask/src/run.rs +++ b/xtask/src/run.rs @@ -17,7 +17,7 @@ use iter::{into_iter, CoalescingRunner}; use crate::{ argument_parsing::{ Backends, BuildOrCheck, ExtraArguments, FormatOpt, Globals, PackageOpt, Platforms, - TestMetadata, + TestMetadata, TestOpt, }, cargo_command::{BuildMode, CargoCommand}, }; @@ -341,14 +341,15 @@ pub fn cargo_doc<'c>( /// If no package is specified, loop through all packages pub fn cargo_test<'c>( globals: &Globals, - package: &'c PackageOpt, + testopts: &'c TestOpt, backend: Backends, ) -> Vec<FinalRunResult<'c>> { info!("Running cargo test on backend: {backend:?}"); + let TestOpt { package, loom } = testopts; package .packages() .map(|p| { - let meta = TestMetadata::match_package(p, backend); + let meta = TestMetadata::match_package(p, backend, *loom); (globals, meta, false) }) .run_and_coalesce() |
