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

twister: testplan: do not error on missing unsatisfied env #82365

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nashif
Copy link
Member

@nashif nashif commented Nov 30, 2024

bsim requires a special setup for it to be usuable and run by twister.
If this environment is not available, we should not error.

Most developers and users of twister will not have the babblesim setup
and reporting errors is misleading and confusing. So if such env. is not
available, just filter as usual and do not error.

Signed-off-by: Anas Nashif [email protected]

bsim requires a special setup for it to be usuable and run by twister.
If this environment is not available, we should not error.

Most developers and users of twister will not have the babblesim setup
and reporting errors is misleading and confusing. So if such env. is not
available, just filter as usual and do not error.

Signed-off-by: Anas Nashif <[email protected]>
Copy link
Member

@golowanow golowanow left a comment

Choose a reason for hiding this comment

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

I think the commit description could be more clear and generic, like: "missing env: variable for a platform now has its own filter type, which for integration platforms is treated as skip instead of error" and bsim as just a current example.

@@ -71,6 +71,8 @@ class Filters:
TOOLCHAIN = 'Toolchain filter'
# in case an optional module is not available
MODULE = 'Module filter'
# in case an optional module is not available
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# in case an optional module is not available
# in case of missing env. variable required for a platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants