Commit af2c7cad534d5c1ff59d8c9c1cb0acc08b1f69dc

Authored by Miguel Barao
1 parent 13098948
Exists in master and in 1 other branch dev

- log ERROR instead of WARNING when generators return !=0

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
... ... @@ -145,8 +145,6 @@
145 145  
146 146 ### Tabelas
147 147  
148   - Não têm um espaçamento perfeito, é uma limitação do markdown.
149   -
150 148 Left | Center | Right
151 149 -----------------|:-------------:|----------:
152 150 $\sin(x^2)$ | *hello* | $1600.00
... ...
templates/test.html
... ... @@ -44,7 +44,6 @@
44 44 padding: 5px;
45 45 border-bottom: 1px solid #ddd;
46 46 }
47   -
48 47 </style>
49 48 </head>
50 49 <!-- ===================================================================== -->
... ...
tools.py
... ... @@ -46,7 +46,7 @@ def run_script(script, stdin=&#39;&#39;, 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)
... ...