Home | History | Annotate | Download | only in system

Lines Matching full:args

58     def _string_from_args(self, args, limit=100):
59 args_string = unicode(args)
79 self.script_args = script_args # 'args' is already used by Exception
99 def run_command(*args, **kwargs):
102 return Executive().run_command(*args, **kwargs)
115 def _run_command_with_teed_output(self, args, teed_output):
116 args = map(unicode, args) # Popen will throw an exception if args are non-strings (like int())
117 args = map(self._encode_argument_if_needed, args)
119 child_process = subprocess.Popen(args,
142 def run_and_throw_if_fail(self, args, quiet=False, decode_output=True):
150 exit_code = self._run_command_with_teed_output(args, child_stdout)
161 raise ScriptError(script_args=args,
336 def _command_for_printing(self, args):
337 """Returns a print-ready string representing command args.
340 for arg in args:
350 args,
358 assert(isinstance(args, list) or isinstance(args, tuple))
360 args = map(unicode, args) # Popen will throw an exception if args are non-strings (like int())
361 args = map(self._encode_argument_if_needed, args)
366 process = subprocess.Popen(args,
382 _log.debug('"%s" took %.2fs' % (self._command_for_printing(args), time.time() - start_time))
388 script_error = ScriptError(script_args=args,