diff --git a/testcases/Lcov.py b/testcases/Lcov.py index 96563e88..61d234a6 100644 --- a/testcases/Lcov.py +++ b/testcases/Lcov.py @@ -66,9 +66,9 @@ def runTest(self): dep_packages = ['perl*', 'tiny*'] log.info("installing the dependency packages") for pkg in dep_packages: - if self.distro_name == 'rhel': + if self.distro == 'rhel': self.cv_HOST.host_run_command(f"{cmd} {pkg} -y") - elif self.distro_name == 'sles': + elif self.distro == 'sles': self.cv_HOST.host_run_command(f"{cmd} -y {pkg}") time.sleep(5) log.info("changing dir to /home")