tests/periph_cpuid: fix test script regex
This commit is contained in:
parent
af0c6e9319
commit
bcf39adb36
@ -15,7 +15,7 @@ def testfunc(child):
|
|||||||
child.expect_exact('This test is reading out the CPUID of the platforms CPU')
|
child.expect_exact('This test is reading out the CPUID of the platforms CPU')
|
||||||
child.expect(r'CPUID_LEN: (\d+)')
|
child.expect(r'CPUID_LEN: (\d+)')
|
||||||
cpuid_len = int(child.match.group(1))
|
cpuid_len = int(child.match.group(1))
|
||||||
child.expect(r'CPUID:( 0x[0-9a-fA-F]{2})+\s*$')
|
child.expect(r'CPUID:( 0x[0-9a-fA-F]{2})+\s*\r\n')
|
||||||
assert child.match.group(0).count(' 0x') == cpuid_len
|
assert child.match.group(0).count(' 0x') == cpuid_len
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user