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

Fixed logical issue in kselftest for if/else block. #2884

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

Conversation

SamirMulani
Copy link
Contributor

Refactor the code logic to execute the kselftest cases based on the selected component correctly.
Ex: bpf, cpufrequecy .. etc

Refactor the code logic to correctly execute the kselftest cases based on the selected component.
Ex: bpf, cpufrequecy .. etc

Signed-off-by: Samir Mulani <[email protected]>
@@ -177,7 +177,7 @@ def test(self):
kself_args = self.params.get("kself_args", default='')
if self.comp == "bpf":
self.bpf()
if self.comp == "cpufreq":
elif self.comp == "cpufreq":
Copy link
Member

Choose a reason for hiding this comment

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

this will break another part of the code like result is an undefined variable, please take care of that well, easy way is to return value from cpufreq function and store in result variable

@Naresh-ibm Naresh-ibm self-assigned this Oct 23, 2024
@Naresh-ibm
Copy link
Collaborator

@SamirMulani any update here?

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