-
-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make runtest work for external tests again #4704
Conversation
An earlier rework had caused external directories not to be searched, even if specified in combination with --external. Fixes SCons#4699. Signed-off-by: Mats Wichmann <mats@linux.com>
@mwichmann simplified path specifications as much as possible in calls to test framework. |
@@ -35,7 +35,7 @@ | |||
import TestRuntest | |||
|
|||
test = TestRuntest.TestRuntest() | |||
test.subdir('ext', ['ext', 'test'], ['ext', 'test', 'subdir']) | |||
test.subdir('ext/test/subdir') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought you had to "declare" (create) all the test directories, since I've seen it done that way? This was a quick copy-and-mod of test/runtest/testargv.py
, by the way. Ah, I see now the subdir
docstring does talk about making intermediates, too.
Nope. It calls makedirs() under the hood.
…On Thu, Apr 3, 2025 at 6:18 AM Mats Wichmann ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In test/runtest/external_tests.py
<#4704 (comment)>:
> @@ -35,7 +35,7 @@
import TestRuntest
test = TestRuntest.TestRuntest()
-test.subdir('ext', ['ext', 'test'], ['ext', 'test', 'subdir'])
+test.subdir('ext/test/subdir')
I thought you had to "declare" (create) all the test directories, since
I've seen it done that way? This was a quick copy-and-mod of
test/runtest/testargv.py, by the way. Ah, I see now the subdir docstring
does talk about making intermediates, too.
—
Reply to this email directly, view it on GitHub
<#4704 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAUCNF5H7TP2LW7WHTMYGL2XUYLNAVCNFSM6AAAAAB2KKTQX6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDOMZZHAYTOOBYGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Got it. I thought there was more to it than just make sure the directory exists, and don't know where I got that idea from. Maybe I'll clean up the other runtest tests someday, but of course I have no objection to the change you made - I just copied a test and hacked it without doing further examination. |
An earlier rework had caused external directories not to be searched, even if specified in combination with
--external
.Fixes #4699.
Contributor Checklist:
CHANGES.txt
andRELEASE.txt
(and read theREADME.rst
).