1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +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:
Alexandre Abadie 2019-10-02 15:58:20 +02:00
parent 0e7c3bd2b7
commit 630e7ba053
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -17,7 +17,7 @@ TIMEOUT = 180
def testfunc(child):
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)