You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The changes over the last few years attempting to improve the clarity of test selection has led to circumstances where runtest.py does not find tests as expected. In particular, when used in --external mode and given a non-local path to a directory containing external tests, they are not found.
In the mode we usually run it, both as developers and in CI, from an scons checkout, it recognizes a subdirectory named SCons or one named testing to look for unit tests, and one named test to look for e2e tests, and this works fine. When used in external mode and given directory paths, test is unlikely to be the first component of the path given, since you're specifically pointing outside the SCons tree. This section fails to find any tests in that case:
Activity
mwichmann commentedon Mar 27, 2025
Just adding another case seems to be enough - if external was specified, look for
testsas one of the parts of the path, not just the first part.Make runtest work for external tests again
Make runtest work for external tests again