Skip to content

Commit

Permalink
Fixed Regression in Lcov script
Browse files Browse the repository at this point in the history
Fixed Regression in Lcov script: as there was an issue in zypper install command, this patch accommodating same 

Signed-off-by: Praveen K Pandey <[email protected]>
  • Loading branch information
PraveenPenguin authored Oct 3, 2024
1 parent 59e31e5 commit 6fbbbb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion testcases/Lcov.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ def runTest(self):
dep_packages = ['perl*', 'tiny*']
log.info("installing the dependency packages")
for pkg in dep_packages:
self.c.run_command(cmd + " " + pkg + " -y")
if self.distro_name == 'rhel':
self.cv_HOST.host_run_command(f"{cmd} {pkg} -y")
elif self.distro_name == 'sles':
self.cv_HOST.host_run_command(f"{cmd} -y {pkg}")
time.sleep(5)
log.info("changing dir to /home")
self.c.run_command("cd /home/; rm -rf lcov")
Expand Down

0 comments on commit 6fbbbb1

Please sign in to comment.