Skip to content

Commit 8e5c223

Browse files
Holt-Sunaescolar
authored andcommitted
samples: drivers: crc: fix twister regex and run in CI
1. Update the CRC sample’s Twister console regex to match the current log output. 2. Add an integration_platforms entry (ek_ra8m1) so the sample runs in PR CI. 3. Make CRC verification unconditional so the expected “verification succeeded” log is always emitted and mismatches fail the test. Signed-off-by: Holt Sun <holt.sun@nxp.com>
1 parent 62ad1b5 commit 8e5c223

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

samples/drivers/crc/sample.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ tests:
66
tags:
77
- drivers
88
- crc
9+
integration_platforms:
10+
- ek_ra8m1
911
harness: console
1012
harness_config:
1113
type: one_line
1214
regex:
13-
- "CRC verification succeeded"
15+
- "verification succeeded"

samples/drivers/crc/src/main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ int main(void)
102102

103103
LOG_INF("%s result: 0x%08x", CRC_SAMPLE_NAME, (unsigned int)ctx.result);
104104

105-
#if defined(CRC_SAMPLE_EXPECTED) && (CRC_SAMPLE_EXPECTED != 0)
106105
ret = crc_verify(&ctx, CRC_SAMPLE_EXPECTED);
107106
if (ret != 0) {
108107
LOG_ERR("%s verification failed (expected 0x%08x): %d", CRC_SAMPLE_NAME,
@@ -111,7 +110,6 @@ int main(void)
111110
}
112111
LOG_INF("%s verification succeeded (expected 0x%08x)", CRC_SAMPLE_NAME,
113112
CRC_SAMPLE_EXPECTED);
114-
#endif
115113

116114
return 0;
117115
}

0 commit comments

Comments
 (0)