Skip to content

Commit c91c7c8

Browse files
committed
Fix tests not running on the device
1 parent 07bc6e9 commit c91c7c8

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
@@ -79,7 +79,6 @@ cortex-m-semihosting = "0.5.0"
7979
panic-itm = { version = "~0.4.1" }
8080
panic-probe = "0.3.2"
8181
panic-semihosting = "0.6"
82-
embedded-test = "0.6.1"
8382

8483
[profile.release]
8584
codegen-units = 1 # better optimizations
@@ -93,11 +92,3 @@ name = "blinky"
9392
[[example]]
9493
name = "i2c"
9594
required-features = ["stm32h503"]
96-
97-
[[test]]
98-
name = "nucleo-h533"
99-
harness = false
100-
required-features = ["stm32h533", "defmt"]
101-
102-
[lib]
103-
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)