1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/driver_apds99xx*: move to test-with-config

This commit is contained in:
Alexandre Abadie 2021-01-19 16:24:53 +01:00
parent f8fb26835c
commit d0f3cefc7e
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 4 additions and 10 deletions

View File

@ -11,11 +11,8 @@ from testrunner import run
def testfunc(child):
child.expect('Initializing APDS99XX sensor')
i = child.expect(['[OK]', '[Failed]'])
if i == 1:
print('FAILED')
return
child.expect_exact('Initializing APDS99XX sensor')
child.expect_exact('[OK]')
child.expect(r'proximity = \d+ \[cnts\]')
child.expect(r'ambient = \d+ \[cnts\]')
child.expect([r'red = \d+ \[cnts\], green = \d+ \[cnts\], blue = \d+ \[cnts\]',

View File

@ -11,11 +11,8 @@ from testrunner import run
def testfunc(child):
child.expect('Initializing APDS99XX sensor')
i = child.expect(['[OK]', '[Failed]'])
if i == 1:
print('FAILED')
return
child.expect_exact('Initializing APDS99XX sensor')
child.expect_exact('[OK]')
child.expect(r'ambient = \d+ \[cnts\]')
child.expect([r'red = \d+ \[cnts\], green = \d+ \[cnts\], blue = \d+ \[cnts\]',
r'illuminance = %d [lux]'])