From: Tony Mack Date: Thu, 17 Jul 2008 21:31:18 +0000 (+0000) Subject: bug fixes X-Git-Tag: tests-4.3-0~138 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5424f888a8507cbb923118a34127a1a438954cdf;hp=44d699a3eb760d631169eef4418bd2ef84ae63da;p=tests.git bug fixes --- diff --git a/qaapi/qa/Remote.py b/qaapi/qa/Remote.py index ec0a0ad..b904533 100644 --- a/qaapi/qa/Remote.py +++ b/qaapi/qa/Remote.py @@ -139,17 +139,23 @@ class VRemote(Remote): return command # Host remote commands - def host_popen(self, command, fatal = True): + def host_popen(self, command, fatal = True, logfile = None): + if logfile is None: + logfile = self.logfile command = self.get_host_command(command) - return utils.popen(command, fatal, self.config.verbose, self.logfile) + return utils.popen(command, fatal, self.config.verbose, logfile) - def host_popen3(self, command): + def host_popen3(self, command, logfile = None): + if logfile is None: + logfile = self.logfile command = self.get_host_command(command) - return utils.popen3(command, self.config.verbose, self.logfile) + return utils.popen3(command, self.config.verbose, logfile) - def host_commands(self, command, fatal = True): + def host_commands(self, command, fatal = True, logfile = None): + if logfile is None: + logfiile = self.logfile command = self.get_host_command(command) - return utils.commands(command, fatal, self.config.verbose, self.logfile) + return utils.commands(command, fatal, self.config.verbose, logfile) # Slice remote commands def slice_popen(self, command, user = 'root', key = None, fatal = True):