Skip to content

Commit 6fbbbb1

Browse files
Fixed Regression in Lcov script
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]>
1 parent 59e31e5 commit 6fbbbb1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testcases/Lcov.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ def runTest(self):
6666
dep_packages = ['perl*', 'tiny*']
6767
log.info("installing the dependency packages")
6868
for pkg in dep_packages:
69-
self.c.run_command(cmd + " " + pkg + " -y")
69+
if self.distro_name == 'rhel':
70+
self.cv_HOST.host_run_command(f"{cmd} {pkg} -y")
71+
elif self.distro_name == 'sles':
72+
self.cv_HOST.host_run_command(f"{cmd} -y {pkg}")
7073
time.sleep(5)
7174
log.info("changing dir to /home")
7275
self.c.run_command("cd /home/; rm -rf lcov")

0 commit comments

Comments
 (0)