tests: Use returned value of 'check_unittests'
This commit is contained in:
parent
98fd746656
commit
8ce1bcd4d0
@ -319,8 +319,8 @@ def testfunc(child):
|
|||||||
tap = get_bridge(os.environ["TAP"])
|
tap = get_bridge(os.environ["TAP"])
|
||||||
|
|
||||||
child.sendline("unittests")
|
child.sendline("unittests")
|
||||||
check_unittests(child) # wait for and check result of unittests
|
# wait for and check result of unittests
|
||||||
print("." * int(child.match.group(1)), end="", flush=True)
|
print("." * check_unittests(child), end="", flush=True)
|
||||||
|
|
||||||
lladdr_src = get_host_lladdr(tap)
|
lladdr_src = get_host_lladdr(tap)
|
||||||
|
|
||||||
|
|||||||
@ -338,8 +338,8 @@ def testfunc(child):
|
|||||||
global sniffer
|
global sniffer
|
||||||
tap = get_bridge(os.environ["TAP"])
|
tap = get_bridge(os.environ["TAP"])
|
||||||
child.sendline("unittests")
|
child.sendline("unittests")
|
||||||
check_unittests(child) # wait for and check result of unittests
|
# wait for and check result of unittests
|
||||||
print("." * int(child.match.group(1)), end="", flush=True)
|
print("." * check_unittests(child), end="", flush=True)
|
||||||
lladdr_src = get_host_lladdr(tap)
|
lladdr_src = get_host_lladdr(tap)
|
||||||
child.sendline("ifconfig")
|
child.sendline("ifconfig")
|
||||||
child.expect(r"HWaddr: (?P<hwaddr>[A-Fa-f:0-9]+)\s")
|
child.expect(r"HWaddr: (?P<hwaddr>[A-Fa-f:0-9]+)\s")
|
||||||
|
|||||||
@ -88,8 +88,7 @@ def testfunc(child):
|
|||||||
)
|
)
|
||||||
child.expect_exact("Original fragmentation header:")
|
child.expect_exact("Original fragmentation header:")
|
||||||
child.expect_exact("IPHC headers + payload:")
|
child.expect_exact("IPHC headers + payload:")
|
||||||
check_unittests(child)
|
assert check_unittests(child) >= 4
|
||||||
assert int(child.match.group(1)) >= 4
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user