tests: Make sure special tests can be skipped as well.

Fixes #2806.
pull/2081/merge
stijn 2017-01-23 10:44:29 +01:00 zatwierdzone przez Damien George
rodzic c707668d9e
commit 533129f835
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -145,6 +145,10 @@ def run_micropython(pyb, args, test_file):
# canonical form for all ports/platforms is to use \n for end-of-line
output_mupy = output_mupy.replace(b'\r\n', b'\n')
# don't try to convert the output if we should skip this test
if output_mupy == b'SKIP\n':
return output_mupy
if is_special or test_file in special_tests:
# convert parts of the output that are not stable across runs
with open(test_file + '.exp', 'rb') as f: