Beispiel #1
0
 def execute(self, executable, args=[], env=None):
     if isinstance(args, str):
         args = ' '.join(SB2ARGS) + ' ' + str(executable) + ' ' + args
         log.message('executing sb2 ' + args)
     else:
         args = SB2ARGS + [str(executable)] + args
         log.message('executing sb2 ' + ' '.join(args))
     returncode, stdout, stderr = _run_subprocess('sb2', args, env)
     return ExecutionResult(returncode, stdout, stderr)
Beispiel #2
0
 def execute(self, executable, args=[], env=None):
     if isinstance(args, str):
         args = str(executable) + ' ' + args
         log.message('executing /scratchbox/login ' + args)
     else:
         args = [str(executable)] + args
         log.message('executing /scratchbox/login ' + ' '.join(args))
     returncode, stdout, stderr = _run_subprocess('/scratchbox/login', args,
                                                  env)
     return ExecutionResult(returncode, stdout, stderr)
Beispiel #3
0
 def execute(self, executable, args=[], env=None):
     if isinstance(args, str):
         args = ' '.join(SB2ARGS) + ' ' + str(executable) + ' ' + args
         log.message('executing sb2 ' + args)
     else:
         args = SB2ARGS + [str(executable)] + args
         log.message('executing sb2 ' + ' '.join(args))
     returncode, stdout, stderr = _run_subprocess('sb2', args,
                                                  env)
     return ExecutionResult(returncode, stdout, stderr)
Beispiel #4
0
 def execute(self, executable, args=[], env=None):
     if isinstance(args, str):
         args = str(executable) + ' ' + args
         log.message('executing /scratchbox/login ' + args)
     else:
         args = [str(executable)] + args
         log.message('executing /scratchbox/login ' + ' '.join(args))
     returncode, stdout, stderr = _run_subprocess('/scratchbox/login', args,
                                                  env)
     return ExecutionResult(returncode, stdout, stderr)