X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/e8abee9ba294fb9900e0d057945b286886e117e1..868ddf40753af7bd1fa6de93181203d53edcabc7:/src/sc_test?ds=inline diff --git a/src/sc_test b/src/sc_test index f0b9916..f9518f1 100755 --- a/src/sc_test +++ b/src/sc_test @@ -13,6 +13,7 @@ import shutil import datetime import logging import logging.config +import subprocess import ConfigParser # Módulos externos import sqlobject @@ -120,15 +121,15 @@ while continuar: # Compilo log.debug('A punto de ejecutar el comando: make -f %s', makefile) intento.inicioCompila = datetime.datetime.now() - make = subprocess.Popen(('make', '-f', makefile), stdout=subproccess.PIPE, - stderr=subproccess.PIPE, cwd=intento_dir) + make = subprocess.Popen(('make', '-f', makefile), stdout=subprocess.PIPE, + stderr=subprocess.PIPE, cwd=intento_dir) make.wait() intento.finCompila = datetime.datetime.now() log.debug('Fin del comando: make -f %s', makefile) # Verifico compilación if make.returncode: log.debug('Error al compilar, código de retorno: %d, salida estándar: ' - '%s, salida de error: %s)', make.retcode, make.stdout.read(), + '%s, salida de error: %s)', make.returncode, make.stdout.read(), make.stderr.read()) intento.compila = False #TODO enviar_respuesta(R_ERR, $mail, "ERROR AL COMPILAR!\n\n$err\n\nCódigo de retorno: $ret\n", $intento);