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
commit 9e48249c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()