1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tests/driver_bme680: improve automated test script

This commit is contained in:
Alexandre Abadie 2020-11-03 15:23:36 +01:00
parent dd13e5c639
commit c99ee7729c
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -16,13 +16,12 @@ def testfunc(child):
if i == 1:
print('FAILED')
return
child.expect('\[bme680\]: dev=0, ')
child.expect(r'T = \d+.\d+ degC, ')
child.expect(r'P = \d+ Pa, ')
child.expect(r'H = \d+.\d+ \%, ')
child.expect(r'G = \d+ ohms')
child.expect(r'\[bme680\]: dev=0, '
r'T = \d+.\d+ degC, '
r'P = \d+ Pa, '
r'H = \d+.\d+ \%, '
r'G = \d+ ohms\r\n')
print('SUCCESS')
return
if __name__ == "__main__":