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:
parent
f8fb26835c
commit
d0f3cefc7e
@ -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\]',
|
@ -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]'])
|
Loading…
Reference in New Issue
Block a user