tests/driver_bme680: move to test-with-config
If the configuration is correct, the test should succeed, so the test script is adapted
This commit is contained in:
parent
5e43172c87
commit
5ec41f35c7
@ -11,11 +11,7 @@ from testrunner import run
|
|||||||
|
|
||||||
|
|
||||||
def testfunc(child):
|
def testfunc(child):
|
||||||
child.expect('Initialize BME680 sensor 0 ... ')
|
child.expect_exact('Initialize BME680 sensor 0 ... OK')
|
||||||
i = child.expect(['[OK]', '[failed]'])
|
|
||||||
if i == 1:
|
|
||||||
print('FAILED')
|
|
||||||
return
|
|
||||||
child.expect(r'\[bme680\]: dev=0, '
|
child.expect(r'\[bme680\]: dev=0, '
|
||||||
r'T = \d+.\d+ degC, '
|
r'T = \d+.\d+ degC, '
|
||||||
r'P = \d+ Pa, '
|
r'P = \d+ Pa, '
|
||||||
Loading…
x
Reference in New Issue
Block a user