Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: on_target: add fota fixture #484

Merged
merged 1 commit into from
Nov 27, 2024
Merged

tests: on_target: add fota fixture #484

merged 1 commit into from
Nov 27, 2024

Conversation

dilner
Copy link
Contributor

@dilner dilner commented Nov 26, 2024

No description provided.

scan_log_for_assertions(uart_log)

@pytest.fixture(scope="module")
def t91x_fota():
Copy link
Collaborator

@DematteisGiacomo DematteisGiacomo Nov 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could also make t91x_fota inherit uart from t91x_board, like this:

@pytest.fixture(scope="module")
def t91x_fota(t91x_board):
    # Use t91x_board fixture to provide UART functionality to t91x_fota
    uart = t91x_board.uart

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was considering that before going for this solution. The disadvantage is that you then cannot combine it with t91x_trace in case there would be a need. But I can change, maybe it makes more sense i test_fota.py to just have one fixture.

Copy link
Contributor

@jorgenmk jorgenmk Nov 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will be cleanest: def t91x_fota(t91x_board): One would not use the fota fixture without the uart fixture.

@dilner dilner merged commit b323ac4 into main Nov 27, 2024
3 checks passed
@dilner dilner deleted the fota_fixture branch November 27, 2024 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants