X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/84a2ae6a69cf61ee84ce1fc54fde893f57c5bd5f..3f3ef2946498735ebb3170ab304d84fed9865ce1:/src/sc_test?ds=inline diff --git a/src/sc_test b/src/sc_test index f9518f1..fad2a06 100755 --- a/src/sc_test +++ b/src/sc_test @@ -112,14 +112,15 @@ while continuar: log.info('Nuevo intento a probar (%s)', intento) # Obtengo paths intento_dir = os.path.join(data_dir, intento.path('intentos')) - entrega_dir = os.path.join(data_dir, intento.path('entregas')) + entrega_dir = os.path.join(data_dir, 'ejercicios', str(intento.entrega.ejercicioID)) + print entrega_dir # Busco makefile makefile = os.path.join(entrega_dir, 'Makefile') if not os.path.exists(makefile): makefile = os.path.join(data_dir, 'Makefile') shutil.copy(makefile, intento_dir) # Compilo - log.debug('A punto de ejecutar el comando: make -f %s', makefile) + log.debug('Ejecutando: make -f %s', makefile) intento.inicioCompila = datetime.datetime.now() make = subprocess.Popen(('make', '-f', makefile), stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=intento_dir)