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

Fix suse gcov #825

Merged
merged 2 commits into from
Jun 6, 2024
Merged

Conversation

PraveenPenguin
Copy link
Collaborator

1- [Fixed Support for Suse source package can be get via API]
2- [added support in get kernel source in suse case]

Signed-off-by: Praveen K Pandey <praveen@linux.vnet.ibm.com>
log.info("\nInstalling the ditro src...")
if self.distro_name == 'rhel':
src_path = self.util.get_distro_src('kernel', '/root', "-bp")
elif self.distro_name == 'sles':
src_path = self.util.get_distro_src('kernel-default', '/root', "-bp")
src_path = self.util.get_distro_src('kernel-default', '/root', "-bp", "linux")
distro = "sles"
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not make distro a class variable, so this will expand the scope into all methods.. and you no need to pass distro as extra parameter in each of these function self.kernel_config(src_path, distro) self.add_gcov_param(src_conf_file, distro)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes good idea

Signed-off-by: Praveen K Pandey <praveen@linux.vnet.ibm.com>
@PraveenPenguin
Copy link
Collaborator Author

@abdhaleegit taken care review comment , can you please have a look

@abdhaleegit abdhaleegit self-assigned this May 16, 2024
@abdhaleegit abdhaleegit self-requested a review June 6, 2024 08:22
@abdhaleegit abdhaleegit self-requested a review June 6, 2024 08:26
Copy link
Collaborator

@abdhaleegit abdhaleegit left a comment

Choose a reason for hiding this comment

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

LGTM

@abdhaleegit abdhaleegit merged commit 42f6483 into open-power:master Jun 6, 2024
1 check passed
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.

2 participants