Skip to content

Commit

Permalink
Merge pull request #1261 from kylazhang/fix-install-no-return
Browse files Browse the repository at this point in the history
Add interval for package install to avoid no exit status issues
  • Loading branch information
Balamuruhan S authored May 29, 2018
2 parents 5386f61 + c22f456 commit 1906f2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virttest/utils_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 1906f2e

Please sign in to comment.