diff --git a/virttest/utils_package.py b/virttest/utils_package.py index 940f8e1b29..466739b5b6 100644 --- a/virttest/utils_package.py +++ b/virttest/utils_package.py @@ -83,7 +83,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 @@ -100,7 +100,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)