-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ndk-stack, remove test reliance on mocks.
ndk-stack was moved to being a zipapp, which changed the path of __file__ relative to the root of the NDK. This was covered by a test (97% line coverage, even), but the test was useless because it was only testing mocks, and the mocks weren't updated. The "system test" has been updated to test the real ndk-stack entry point in the NDK rather than importing the source and mocking dependency discovery. This unfortunately means that running the tests now depends on more or less the whole NDK, but that's true of everything else in the tests/ directory anyway. If that's ever a problem, we should split up the tests so that the test of the NDK itself and the tests of the ndk python package are kept separately. Bug: android/ndk#1751 Test: fixed the test, also tested manually (cherry picked from https://android-review.googlesource.com/q/commit:a54b719d892e8d19fe0ee9218762f0d9093c88f1) Merged-In: I77076d1c3fc8ac5a05a93dbe1ce3488874283143 Change-Id: I77076d1c3fc8ac5a05a93dbe1ce3488874283143
- Loading branch information
Showing
4 changed files
with
59 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters