From 6fbbbb115f899184e7e4c9cf1498f56208a26c2f Mon Sep 17 00:00:00 2001 From: Praveen Pandey Date: Thu, 3 Oct 2024 09:20:36 +0530 Subject: [PATCH] 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 --- testcases/Lcov.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testcases/Lcov.py b/testcases/Lcov.py index 5660feab..96563e88 100644 --- a/testcases/Lcov.py +++ b/testcases/Lcov.py @@ -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")