Repository navigation
Remove ASSETS_DIR from Android test infrastructure - #121720
Merged
Merged
Conversation
Co-authored-by: sbomer <[email protected]>
Copilot
AI
changed the title
[WIP] Remove ASSETS_DIR from android test infrastructure
Remove ASSETS_DIR from Android test infrastructure
Nov 17, 2025
sbomer
reviewed
Nov 18, 2025
Co-authored-by: sbomer <[email protected]>
This was referenced Nov 18, 2025
Open
Member
|
/azp run runtime-androidemulator |
Member
|
/azp run runtime-android |
|
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
|
Azure Pipelines successfully started running 1 pipeline(s). |
sbomer
marked this pull request as ready for review
November 18, 2025 22:36
sbomer
approved these changes
Nov 18, 2025
jtschuster
reviewed
Nov 18, 2025
jtschuster
approved these changes
Nov 18, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR removes the no-longer-needed ASSETS_DIR environment variable from the Android test infrastructure. With the NativeAOT test host now properly setting AppContext.BaseDirectory, tests can access their data files directly without the fallback environment variable.
- Removed
ASSETS_DIRenvironment variable setup from Android test runner - Simplified test file path resolution to use
AppContext.BaseDirectorydirectly - Eliminated unnecessary intermediate
TestDataRootfield
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/tasks/AndroidAppBuilder/Templates/MonoRunner.java | Removed setEnv("ASSETS_DIR", filesDir) call from runtime initialization |
| src/libraries/System.Security.Cryptography/tests/X509Certificates/TestFiles.cs | Simplified TestDataFolder to use AppContext.BaseDirectory directly, removing the TestDataRoot field and ASSETS_DIR fallback |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Clean up ASSETS_DIR from Android test infrastructure
The ASSETS_DIR environment variable is no longer needed now that we set up the AppContext.BaseDirectory in the NativeAOT test host (as per commit aec646f).
Changes Made
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.