Skip to content

Commit dea6436

Browse files
committed
samples: embassy: Detect proper end to the test
Print a message after the test finish, and use this to terminate the tests with success. Signed-off-by: David Brown <[email protected]>
1 parent 04d9e57 commit dea6436

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

samples/embassy/sample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ common:
66
harness_config:
77
type: one_line
88
regex:
9-
- "Hello world from Rust on (.*)"
9+
- "Embassy tests passed"
1010
tags: rust
1111
filter: CONFIG_RUST_SUPPORTED
1212
platform_allow:

samples/embassy/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ async fn main(spawner: Spawner) {
8989
tester
9090
.run(spawner, low_spawner, Command::PingPong(10_000))
9191
.await;
92+
93+
info!("Embassy tests passed");
9294
}
9395

9496
/// Async task tests.

0 commit comments

Comments
 (0)