mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 07:21:18 +01:00
unittests: fix for python3
This commit is contained in:
parent
94bbd055a5
commit
0f7f9fe986
@ -13,7 +13,8 @@ DEFAULT_TIMEOUT = 5
|
||||
|
||||
def main():
|
||||
env = os.environ.copy()
|
||||
child = spawn("make term", env=env, timeout=DEFAULT_TIMEOUT)
|
||||
child = spawn("make term", env=env, timeout=DEFAULT_TIMEOUT,
|
||||
encoding="utf-8")
|
||||
child.logfile = sys.stdout
|
||||
|
||||
try:
|
||||
@ -23,7 +24,7 @@ def main():
|
||||
# make reset yields error on some boards even if successful
|
||||
pass
|
||||
try:
|
||||
child.expect(r"OK \([0-9]+ tests\)")
|
||||
child.expect(u"OK \\([0-9]+ tests\\)")
|
||||
except TIMEOUT:
|
||||
print("There where errors in the unittests")
|
||||
return 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user