From af2c7cad534d5c1ff59d8c9c1cb0acc08b1f69dc Mon Sep 17 00:00:00 2001 From: Miguel Barao Date: Tue, 10 Jan 2017 15:46:31 +0000 Subject: [PATCH] - log ERROR instead of WARNING when generators return !=0 --- BUGS.md | 1 + demo/questions/questions.yaml | 2 -- templates/test.html | 1 - tools.py | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/BUGS.md b/BUGS.md index a27db7c..81390e3 100644 --- a/BUGS.md +++ b/BUGS.md @@ -26,6 +26,7 @@ # FIXED +- erros nos generators devem ser ERROR e não WARNING. - se directorio "logs" não existir no directorio actual aborta com mensagem de erro. - se um teste tiver a mesma pergunta repetida (ref igual), rebenta na correcçao. As respostas são agregadas numa lista para cada ref. Ex: {'ref1': 'resposta1', 'ref2': ['resposta2a', 'resposta2b']} - usar http://fontawesome.io/examples/ em vez dos do bootstrap3 diff --git a/demo/questions/questions.yaml b/demo/questions/questions.yaml index 5709894..d0b0cec 100644 --- a/demo/questions/questions.yaml +++ b/demo/questions/questions.yaml @@ -145,8 +145,6 @@ ### Tabelas - Não têm um espaçamento perfeito, é uma limitação do markdown. - Left | Center | Right -----------------|:-------------:|----------: $\sin(x^2)$ | *hello* | $1600.00 diff --git a/templates/test.html b/templates/test.html index ff6306c..263e6f7 100644 --- a/templates/test.html +++ b/templates/test.html @@ -44,7 +44,6 @@ padding: 5px; border-bottom: 1px solid #ddd; } - diff --git a/tools.py b/tools.py index b72433a..ccccec2 100644 --- a/tools.py +++ b/tools.py @@ -46,7 +46,7 @@ def run_script(script, stdin='', timeout=5): logger.error('Timeout {0}s exceeded while running script "{1}"'.format(timeout, script)) else: if p.returncode != 0: - logger.warning('Script "{0}" returned error code {1}.'.format(script, p.returncode)) + logger.error('Script "{0}" returned error code {1}.'.format(script, p.returncode)) else: try: output = yaml.load(p.stdout) -- libgit2 0.21.2