Skip to content

Commit

Permalink
tests: on_target: t91x_board fixture scoped function
Browse files Browse the repository at this point in the history
Currently t91x_board fixture is scoped module.
Uart therefore times out in test_fota.

Signed-off-by: Giacomo Dematteis <[email protected]>
  • Loading branch information
DematteisGiacomo committed Dec 17, 2024
1 parent 52d0ad6 commit 4626d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/on_target/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def pytest_runtest_logstart(nodeid, location):
def pytest_runtest_logfinish(nodeid, location):
logger.info(f"Finished test: {nodeid}")

@pytest.fixture(scope="module")
@pytest.fixture(scope="function")
def t91x_board():
all_uarts = get_uarts(UART_ID)
if not all_uarts:
Expand Down Expand Up @@ -127,7 +127,7 @@ def t91x_fota(t91x_board):
except Exception as e:
logger.error(f"Error during teardown while canceling pending fota jobs: {e}")

@pytest.fixture(scope="module")
@pytest.fixture(scope="function")
def t91x_traces(t91x_board):
all_uarts = get_uarts(UART_ID)
trace_uart_string = all_uarts[1]
Expand Down

0 comments on commit 4626d2a

Please sign in to comment.