Skip to content

Commit

Permalink
added support in get kernel source in suse case
Browse files Browse the repository at this point in the history
Signed-off-by: Praveen K Pandey <praveen@linux.vnet.ibm.com>
  • Loading branch information
PraveenPenguin committed Apr 16, 2024
1 parent 7e5730f commit 5413368
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions testcases/GcovSetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,19 @@ def runTest(self):
self.installer = "yum install"
elif self.distro_name == 'sles':
self.installer = "zypper install"
dep_packages = ["rpm-build", "yum-utils", "gcc*", "perl*", "tiny*"]
dep_packages = ["rpm-build", "gcc*", "perl*", "tiny*"]
log.info(f"\nInstalling following dependency packages\n {dep_packages}")
for pkg in dep_packages:
self.cv_HOST.host_run_command(f"{self.installer} {pkg} -y")
if self.distro_name == 'rhel':
dep_packages.append("yum-utils")
self.cv_HOST.host_run_command(f"{self.installer} {pkg} -y")
elif self.distro_name == 'sles':
self.cv_HOST.host_run_command(f"{self.installer} -y {pkg}")
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")
src_path_base = src_path
out = self.cv_HOST.host_run_command(f"ls {src_path}")
for line in out:
Expand Down

0 comments on commit 5413368

Please sign in to comment.