Merge pull request #509 from katlapinka/active-teardown
Fix for checking if connection with DUT is active in teardown
This commit is contained in:
commit
9e48249c52
@ -97,7 +97,7 @@ def pytest_runtest_teardown():
|
|||||||
with TestRun.LOGGER.step("Cleanup after test"):
|
with TestRun.LOGGER.step("Cleanup after test"):
|
||||||
try:
|
try:
|
||||||
if TestRun.executor:
|
if TestRun.executor:
|
||||||
if TestRun.executor.is_active():
|
if not TestRun.executor.is_active():
|
||||||
TestRun.executor.wait_for_connection()
|
TestRun.executor.wait_for_connection()
|
||||||
Udev.enable()
|
Udev.enable()
|
||||||
kill_all_io()
|
kill_all_io()
|
||||||
|
Loading…
Reference in New Issue
Block a user