Set PATH using real SDK and NDK directories#2583
Conversation
|
Ouch, I missed that! Agree about these changes. |
Whoops, missed that line as I was focused on the f-strings. Let me see if I can make a test for this. |
86e99bf to
b6e1ac2
Compare
|
Updated now with the missing line and a minimal test. It passed locally, but this is my first time in this test suite so I might not be doing the right thing. |
|
Unfortunately the tests are failing, can you take care of it? (The pytest ones, others on macOS are expected to fail) |
|
Sure, I'll take a look on Monday. |
|
Hmm, it passes when I run only |
|
Oh, I see what's going on now. This actually comes from f7f8cea, but my added test exercises it. Prior to that commit, Since the test I added runs
|
`Arch.find_executable` uses the context environment `PATH` rather than the process environment `PATH`, so change the assertion to test the correct value. At present these are the same in this test, but since f7f8cea `PATH` is updated in the `Context.env` attribute by `Context.prepare_build_environment` instead of `os.environ`. If `Recipe.get_recipe_env` or `Arch.get_env` were changed to call `prepare_build_environment`, this test would fail.
b6e1ac2 to
f382c3f
Compare
|
I think this should be fixed now. I changed the new test so it patches |
misl6
left a comment
There was a problem hiding this comment.
LGTM, thank you!
I've just added a minor suggestion.
I will wait to merge, so you can address it, but not consider it as a blocking :)
This is a regression from f7f8cea. Previously, `self.sdk_dir` and `self.ndk_dir` were passed to `select_and_check_toolchain_version`.
f382c3f to
0ef906f
Compare
|
I added the comment, ready to review again. |
Thank you! |
This is a regression from f7f8cea.
Previously,
self.sdk_dirandself.ndk_dirwere passed toselect_and_check_toolchain_version.