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: hotfix for unimplemented harnesses #67445

Merged

Conversation

nashif
Copy link
Member

@nashif nashif commented Jan 10, 2024

Harness is freeform right now in the yaml file and if the harness is not
implemented in class, things fail. While we cleanup and enforce
implementations, this should serve as a quick fix dealing with such
unimplemented harnesses.

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

@nashif nashif added the Hotfix Fix for issues blocking development, i.e. CI issues, tests failing in CI, etc. label Jan 10, 2024
@zephyrbot zephyrbot added the area: Twister Twister label Jan 10, 2024
@henrikbrixandersen henrikbrixandersen requested a review from a team January 10, 2024 14:54
Harness is freeform right now in the yaml file and if the harness is not
implemented in class, things fail. While we cleanup and enforce
implementations, this should serve as a quick fix dealing with such
unimplemented harnesses.

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

@gchwier gchwier left a comment

Choose a reason for hiding this comment

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

minor comment

@@ -1055,8 +1055,9 @@ def build(self):
harness = HarnessImporter.get_harness(self.instance.testsuite.harness.capitalize())
Copy link
Collaborator

Choose a reason for hiding this comment

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

could be fine to keep harness in self variables, because it is also created in run method (as a new instance)

@nashif nashif merged commit 4e72696 into zephyrproject-rtos:main Jan 10, 2024
26 checks passed
@nashif nashif deleted the topic/twister/unimplemented_harness branch January 10, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Twister Twister Hotfix Fix for issues blocking development, i.e. CI issues, tests failing in CI, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants