Merge pull request #509 from katlapinka/active-teardown

Fix for checking if connection with DUT is active in teardown
This commit is contained in:
Robert Baldyga
2020-08-25 14:15:32 +02:00
committed by GitHub

View File

@@ -97,7 +97,7 @@ def pytest_runtest_teardown():
with TestRun.LOGGER.step("Cleanup after test"):
try:
if TestRun.executor:
if TestRun.executor.is_active():
if not TestRun.executor.is_active():
TestRun.executor.wait_for_connection()
Udev.enable()
kill_all_io()