Fix for checking if connection with DUT is active in teardown

Signed-off-by: Katarzyna Lapinska <katarzyna.lapinska@intel.com>
This commit is contained in:
Katarzyna Lapinska 2020-08-25 12:44:23 +02:00
parent 9283601d84
commit b876da96b6

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