make -C testsuite parallel
always runs tests in subdirs
#12744
Merged
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.
Make it so
make -C testsuite parallel
runs all tests in all (recursive) subdirectories oftestsuite/tests
. Previously, the test runner wouldn't descend recursively into subdirectories if the parent directory had any tests at all. This meant that one test wasn't being run bymake -C testsuite parallel
and so wasn't being run in CI (e.g. this recent run).That test:
testsuite/tests/tool-toplevel/known-bugs/broken_rec_in_show.ml
Prior to this PR, that test would not be run by either of these invocations:
make -C testsuite parallel
make -C testsuite one DIR=tests/tool-toplevel
Now, both of those invocations will run that test. You can verify this yourself in the CI logs, or by modifying the test locally and confirming that the error is raised by those invocations.
An alternative approach: moving that test up one level of directory structure. This PR's approach is preventative and helps avoid this mistake in the future.