Commit af2c7cad534d5c1ff59d8c9c1cb0acc08b1f69dc
1 parent
13098948
Exists in
master
and in
1 other branch
- log ERROR instead of WARNING when generators return !=0
Showing
4 changed files
with
2 additions
and
4 deletions
Show diff stats
BUGS.md
| ... | ... | @@ -26,6 +26,7 @@ |
| 26 | 26 | |
| 27 | 27 | # FIXED |
| 28 | 28 | |
| 29 | +- erros nos generators devem ser ERROR e não WARNING. | |
| 29 | 30 | - se directorio "logs" não existir no directorio actual aborta com mensagem de erro. |
| 30 | 31 | - 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']} |
| 31 | 32 | - usar http://fontawesome.io/examples/ em vez dos do bootstrap3 | ... | ... |
demo/questions/questions.yaml
templates/test.html
tools.py
| ... | ... | @@ -46,7 +46,7 @@ def run_script(script, stdin='', timeout=5): |
| 46 | 46 | logger.error('Timeout {0}s exceeded while running script "{1}"'.format(timeout, script)) |
| 47 | 47 | else: |
| 48 | 48 | if p.returncode != 0: |
| 49 | - logger.warning('Script "{0}" returned error code {1}.'.format(script, p.returncode)) | |
| 49 | + logger.error('Script "{0}" returned error code {1}.'.format(script, p.returncode)) | |
| 50 | 50 | else: |
| 51 | 51 | try: |
| 52 | 52 | output = yaml.load(p.stdout) | ... | ... |