Skip to content

Commit 7b6583e

Browse files
committed
Fix tests not running on the device
1 parent e5e7c3c commit 7b6583e

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

Cargo.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ cortex-m-log = { version = "0.8.0", features = ["itm", "semihosting", "log-integ
7777
cortex-m-semihosting = "0.5.0"
7878
panic-itm = { version = "~0.4.1" }
7979
panic-semihosting = "0.6"
80-
embedded-test = "0.6.1"
8180

8281
[profile.release]
8382
codegen-units = 1 # better optimizations
@@ -92,11 +91,3 @@ required-features = ["stm32h503"]
9291
[[example]]
9392
name = "i2c"
9493
required-features = ["stm32h503"]
95-
96-
[[test]]
97-
name = "nucleo-h533"
98-
harness = false
99-
required-features = ["stm32h533", "defmt"]
100-
101-
[lib]
102-
test = false

build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
use std::env;
22

33
fn main() {
4+
5+
if env::var("TARGET").unwrap() != "thumbv8m.main-none-eabihf" {
6+
return;
7+
}
8+
49
// stm32 specific
510
println!("cargo:rustc-link-arg=-Tlink.x");
611

0 commit comments

Comments
 (0)