diff --git a/virttest/utils_package.py b/virttest/utils_package.py index f7e9a46181..a68d9a31b5 100644 --- a/virttest/utils_package.py +++ b/virttest/utils_package.py @@ -82,7 +82,7 @@ def is_installed(self, pkg_name): cmd = self.query_cmd + pkg_name return not self.session.cmd_status(cmd) - def operate(self, timeout, default_status): + def operate(self, timeout, default_status, internal_timeout=2): """ Run command and return status @@ -99,7 +99,7 @@ def operate(self, timeout, default_status): need = True if need: cmd = self.cmd + pkg - if self.session.cmd_status(cmd, timeout): + if self.session.cmd_status(cmd, timeout, internal_timeout): # Try to clean the repo db and re-try installation if not self.clean(): logging.error("Package %s was broken", self.package_manager)