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:
parent
9283601d84
commit
b876da96b6
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user