tests: boot: mcuboot_direct_xip: escape plus signs in regex patterns

The plus signs in version strings need to be escaped with double
backslashes when used in regex patterns for the test harness.
This ensures proper pattern matching during test execution.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
This commit is contained in:
Grzegorz Chwierut
2026-01-21 12:13:38 +01:00
committed by Fabio Baltieri
parent 4228409128
commit 2d7b42ddc5

View File

@@ -21,8 +21,8 @@ tests:
type: multi_line
regex:
- "Starting Direct-XIP bootloader"
- "Primary slot: version=0.0.0+0"
- "Secondary slot: version=0.0.0+0"
- "Primary slot: version=0.0.0\\+0"
- "Secondary slot: version=0.0.0\\+0"
- "Image 0 loaded from the primary slot"
- "Bootloader chainload address offset"
- "Image version: v0.0.0"
@@ -36,7 +36,7 @@ tests:
regex:
- "Starting Direct-XIP bootloader"
- "Image 0 Primary slot: Image not found"
- "Secondary slot: version=0.0.0+0"
- "Secondary slot: version=0.0.0\\+0"
- "Image 0 loaded from the secondary slot"
- "Bootloader chainload address offset"
- "Image version: v0.0.0"