aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/argument_parsing.rs15
1 files changed, 10 insertions, 5 deletions
diff --git a/xtask/src/argument_parsing.rs b/xtask/src/argument_parsing.rs
index 3e5afc3..70bae73 100644
--- a/xtask/src/argument_parsing.rs
+++ b/xtask/src/argument_parsing.rs
@@ -41,7 +41,7 @@ impl TestMetadata {
"{},{},{}",
DEFAULT_FEATURES,
backend.to_rtic_feature(),
- "rtic-uitest"
+ backend.to_rtic_uitest_feature(),
));
CargoCommand::Test {
package: Some(package),
@@ -110,10 +110,15 @@ impl Backends {
#[allow(clippy::wrong_self_convention)]
pub fn to_rtic_macros_feature(&self) -> &str {
match self {
- Backends::Thumbv6 => "cortex-m-source-masking",
- Backends::Thumbv7 => "cortex-m-basepri",
- Backends::Thumbv8Base => "cortex-m-source-masking",
- Backends::Thumbv8Main => "cortex-m-basepri",
+ Backends::Thumbv6 | Backends::Thumbv8Base => "cortex-m-source-masking",
+ Backends::Thumbv7 | Backends::Thumbv8Main => "cortex-m-basepri",
+ }
+ }
+ #[allow(clippy::wrong_self_convention)]
+ pub fn to_rtic_uitest_feature(&self) -> &str {
+ match self {
+ Backends::Thumbv6 | Backends::Thumbv8Base => "rtic-uitestv6",
+ Backends::Thumbv7 | Backends::Thumbv8Main => "rtic-uitestv7",
}
}
}