mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests/pkg_ubasic: improve test output regex
The test application now correctly prints float value, with a 3 digits precision. The python test script now verifies the run time value printed for each test is following the x.xxx pattern.
This commit is contained in:
parent
0e7c3bd2b7
commit
630e7ba053
@ -17,7 +17,7 @@ TIMEOUT = 180
|
|||||||
|
|
||||||
def testfunc(child):
|
def testfunc(child):
|
||||||
for i in range(1, 6):
|
for i in range(1, 6):
|
||||||
child.expect(r"Running test #{}... done. Run time: [0-9.]* s".format(i),
|
child.expect(r"Running test #%d... done. Run time: \d+.\d{3} s" % i,
|
||||||
timeout=TIMEOUT)
|
timeout=TIMEOUT)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user