micropython/tests/feature_check
Damien George 8459f538eb tests/feature_check: Check for lack of pass result rather than failure.
Commit cb68a5741a broke automatic Python
feature detection when running tests, because some detection relied on a
crash of a feature script returning exactly b"CRASH".

This commit fixes this and improves the situation by testing for the lack
of a known pass result, rather than an exact failure result.

Signed-off-by: Damien George <damien@micropython.org>
2021-04-15 00:52:56 +10:00
..
README tests: Rename run-tests to run-tests.py for consistency. 2021-03-12 19:56:09 +11:00
async_check.py tests/feature_check: Check for lack of pass result rather than failure. 2021-04-15 00:52:56 +10:00
async_check.py.exp
bytearray.py
bytearray.py.exp
byteorder.py
byteorder.py.exp
complex.py
complex.py.exp
const.py tests/feature_check: Check for lack of pass result rather than failure. 2021-04-15 00:52:56 +10:00
const.py.exp
coverage.py
coverage.py.exp
float.py
float.py.exp
int_big.py
int_big.py.exp
native_check.py tests/feature_check: Check for lack of pass result rather than failure. 2021-04-15 00:52:56 +10:00
native_check.py.exp
repl_emacs_check.py
repl_emacs_check.py.exp
repl_words_move_check.py
repl_words_move_check.py.exp
reverse_ops.py
reverse_ops.py.exp
set_check.py tests/feature_check: Check for lack of pass result rather than failure. 2021-04-15 00:52:56 +10:00
set_check.py.exp
slice.py
slice.py.exp
uio_module.py
uio_module.py.exp

README

This directory doesn't contain real tests, but code snippets to detect
various interpreter features, which can't be/inconvenient to detecte by
other means. Scripts here are executed by run-tests.py at the beginning of
testsuite to decide what other test groups to run/exclude.