Skip to content

Conversation

@wipawel
Copy link
Contributor

@wipawel wipawel commented Nov 1, 2023

This PR makes KTF report certain unexpected situations in a noticeable form instead of panicking.

In many places in the KTF setup code we used panic() as a coping
mechanism for unexpected situations. However, not all of these
situations were fatal. Instead of halting execution completely, use
an easy to spot warning message and continue execution.

Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
Some BUG_ONs are more of a development help rather then potential bugs.
Use more appropriate ASSERT for them instead.

Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
@wipawel wipawel added the improvement A small enhancement, that makes already implemented features better label Nov 1, 2023
@wipawel wipawel requested a review from a team as a code owner November 1, 2023 10:33
@wipawel wipawel enabled auto-merge (rebase) November 1, 2023 10:34
Copy link
Contributor

@sktt sktt left a comment

Choose a reason for hiding this comment

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

Nice streak of PRS :) thanks

Lgtm

Will check the rest later or tomorrow.

@wipawel wipawel merged commit 11fc648 into KernelTestFramework:mainline Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement A small enhancement, that makes already implemented features better

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants