From b876da96b6b36ee249fabc2b0112b476338cef1f Mon Sep 17 00:00:00 2001 From: Katarzyna Lapinska Date: Tue, 25 Aug 2020 12:44:23 +0200 Subject: [PATCH] Fix for checking if connection with DUT is active in teardown Signed-off-by: Katarzyna Lapinska --- test/functional/tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/tests/conftest.py b/test/functional/tests/conftest.py index 8117bde..a103f15 100644 --- a/test/functional/tests/conftest.py +++ b/test/functional/tests/conftest.py @@ -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()