Exemple #1
0
 def execute_makefile(self, path_to_makefile):
     if isinstance(path_to_makefile, GnuMakefile):
         path = path_to_makefile.makefile_dir
     else:
         path = path_to_makefile
     log.execute('make in %s' % (path,))
     returncode, stdout, stderr = _run_subprocess('/scratchbox/login', ['make', '-C', str(path)])
     self._handle_error(returncode, stdout, stderr, path.join('make'))
Exemple #2
0
 def execute_makefile(self, path_to_makefile):
     if isinstance(path_to_makefile, GnuMakefile):
         path = path_to_makefile.makefile_dir
     else:
         path = path_to_makefile
     log.execute('make in %s' % (path,))
     returncode, stdout, stderr = _run_subprocess('/scratchbox/login', ['make', '-C', str(path)])
     self._handle_error(returncode, stdout, stderr, path.join('make'))
Exemple #3
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)
Exemple #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)
Exemple #5
0
 def _execute_c_compiler(self, cc, args, outname):
     log.execute('/scratchbox/login ' + cc + ' ' + ' '.join(args))
     args = [cc] + args
     returncode, stdout, stderr = _run_subprocess('/scratchbox/login', args)
     self._handle_error(returncode, stderr, stdout, outname)
Exemple #6
0
 def _execute_c_compiler(self, cc, args, outname):
     log.execute('/scratchbox/login ' + cc + ' ' + ' '.join(args))
     args = [cc] + args
     returncode, stdout, stderr = _run_subprocess('/scratchbox/login', args)
     self._handle_error(returncode, stderr, stdout, outname)