1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tests: Use returned value of 'check_unittests'

This commit is contained in:
Leandro Lanzieri 2020-04-02 14:08:03 +02:00
parent 98fd746656
commit 8ce1bcd4d0
No known key found for this signature in database
GPG Key ID: 39607DE6080007A3
3 changed files with 5 additions and 6 deletions

View File

@ -319,8 +319,8 @@ def testfunc(child):
tap = get_bridge(os.environ["TAP"])
child.sendline("unittests")
check_unittests(child) # wait for and check result of unittests
print("." * int(child.match.group(1)), end="", flush=True)
# wait for and check result of unittests
print("." * check_unittests(child), end="", flush=True)
lladdr_src = get_host_lladdr(tap)

View File

@ -338,8 +338,8 @@ def testfunc(child):
global sniffer
tap = get_bridge(os.environ["TAP"])
child.sendline("unittests")
check_unittests(child) # wait for and check result of unittests
print("." * int(child.match.group(1)), end="", flush=True)
# wait for and check result of unittests
print("." * check_unittests(child), end="", flush=True)
lladdr_src = get_host_lladdr(tap)
child.sendline("ifconfig")
child.expect(r"HWaddr: (?P<hwaddr>[A-Fa-f:0-9]+)\s")

View File

@ -88,8 +88,7 @@ def testfunc(child):
)
child.expect_exact("Original fragmentation header:")
child.expect_exact("IPHC headers + payload:")
check_unittests(child)
assert int(child.match.group(1)) >= 4
assert check_unittests(child) >= 4
if __name__ == "__main__":