tests/run-tests.py: Run tests-with-regex-output as normal tests. #17768
+5
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Some tests (currently given by the
special_tests
list) have output which must be mached via a regex, because it can change from run to run (eg the address of an object is printed). These tests are currently classified asis_special
in the test runner, which means they get special treatment. In particular they don't set the emitter as specified byargs.emit
. That means these tests do not run via .mpy or using the native emitter, even if those options are given on the command line.This commit fixes that by considering
is_special
as different totests_with_regex_output
. The former is used for things like target feature detection (which are not really tests) and when extra command line options need to be passed to the unix micropython executable. The latter (now calledtests_with_regex_output
) are specifically for tests that have output to be matched via regex.The
thread_exc2.py
test now needs to be excluded when running using the native emitter, because the native emitter doesn't print traceback info.Testing
Tested locally using the unix port. Will be more thoroughly tested by CI.