2017-07-04 13:28:24 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
# Copyright (C) 2016 Kaspar Schleiser <kaspar@schleiser.de>
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
|
|
|
|
import sys
|
2018-08-10 14:23:13 +02:00
|
|
|
from testrunner import run
|
2017-07-04 13:28:24 +02:00
|
|
|
|
2017-11-18 20:15:38 +01:00
|
|
|
|
2017-07-04 13:28:24 +02:00
|
|
|
def testfunc(child):
|
2017-10-23 14:42:27 +02:00
|
|
|
child.expect([r"OK \([0-9]+ tests\)",
|
|
|
|
r"error: unable to initialize RTC \[I2C initialization error\]"])
|
2017-07-04 13:28:24 +02:00
|
|
|
|
2017-12-12 15:43:27 +01:00
|
|
|
|
2017-07-04 13:28:24 +02:00
|
|
|
if __name__ == "__main__":
|
2017-12-12 22:40:03 +01:00
|
|
|
sys.exit(run(testfunc))
|