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,6 +26,7 @@ | ||
26 | 26 | ||
27 | # FIXED | 27 | # FIXED |
28 | 28 | ||
29 | +- erros nos generators devem ser ERROR e não WARNING. | ||
29 | - se directorio "logs" não existir no directorio actual aborta com mensagem de erro. | 30 | - se directorio "logs" não existir no directorio actual aborta com mensagem de erro. |
30 | - 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 | - 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 | - usar http://fontawesome.io/examples/ em vez dos do bootstrap3 | 32 | - usar http://fontawesome.io/examples/ em vez dos do bootstrap3 |
demo/questions/questions.yaml
@@ -145,8 +145,6 @@ | @@ -145,8 +145,6 @@ | ||
145 | 145 | ||
146 | ### Tabelas | 146 | ### Tabelas |
147 | 147 | ||
148 | - Não têm um espaçamento perfeito, é uma limitação do markdown. | ||
149 | - | ||
150 | Left | Center | Right | 148 | Left | Center | Right |
151 | -----------------|:-------------:|----------: | 149 | -----------------|:-------------:|----------: |
152 | $\sin(x^2)$ | *hello* | $1600.00 | 150 | $\sin(x^2)$ | *hello* | $1600.00 |
templates/test.html
@@ -44,7 +44,6 @@ | @@ -44,7 +44,6 @@ | ||
44 | padding: 5px; | 44 | padding: 5px; |
45 | border-bottom: 1px solid #ddd; | 45 | border-bottom: 1px solid #ddd; |
46 | } | 46 | } |
47 | - | ||
48 | </style> | 47 | </style> |
49 | </head> | 48 | </head> |
50 | <!-- ===================================================================== --> | 49 | <!-- ===================================================================== --> |
tools.py
@@ -46,7 +46,7 @@ def run_script(script, stdin='', timeout=5): | @@ -46,7 +46,7 @@ def run_script(script, stdin='', timeout=5): | ||
46 | logger.error('Timeout {0}s exceeded while running script "{1}"'.format(timeout, script)) | 46 | logger.error('Timeout {0}s exceeded while running script "{1}"'.format(timeout, script)) |
47 | else: | 47 | else: |
48 | if p.returncode != 0: | 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 | else: | 50 | else: |
51 | try: | 51 | try: |
52 | output = yaml.load(p.stdout) | 52 | output = yaml.load(p.stdout) |