Skip to content

Conversation

@jonpryor
Copy link
Contributor

@jonpryor jonpryor commented Jun 9, 2022

Context: #7073
Context: #7073 (comment)

How does InstallAndroidDependenciesTest() pass?!

Let's Find Out?

Context: dotnet#7073
Context: dotnet#7073 (comment)

How does `InstallAndroidDependenciesTest()` pass?!

Let's Find Out?
@jonpryor
Copy link
Contributor Author

jonpryor commented Jun 9, 2022

InstallAndroidDependenciesTest() passes because the CI machine doesn't contain monodroid-config.xml.

#7073 (comment)

@jonpryor jonpryor closed this Jun 9, 2022
jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Jun 9, 2022
Context: dotnet#7081
Context: dotnet#7073 (comment)

Trying to figure out why the `InstallAndroidDependenciesTest()` is
failing.  My *guess* is that `monodroid-config.xml` exists, causing
the `$(_AndroidSdkPath)` output property to use a *system-wide*
installation path, instead of the desired `$(AndoridSdkDirectory)`
input value.

PR dotnet#7081 tested behavior against main, and determined that
`monodroid-config.xml` doesn't exist, which may be why this test
passes on main.

Update dotnet#7073 to also assert the (non-?)existence of
`monodroid-config.xml`.  If it *does* exist, this would explain why
it's failing.

*If* it's failing because of `monodroid-config.xml`, the next question
becomes *why* it exists.  Update `BaseTest.TestSetup()` to assert
that it doesn't exist; when it does exist, tests will begin failing.
jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Jun 10, 2022
Context: dotnet#7081
Context: dotnet#7073 (comment)

Trying to figure out why the `InstallAndroidDependenciesTest()` is
failing.  My *guess* is that `monodroid-config.xml` exists, causing
the `$(_AndroidSdkPath)` output property to use a *system-wide*
installation path, instead of the desired `$(AndoridSdkDirectory)`
input value.

PR dotnet#7081 tested behavior against main, and determined that
`monodroid-config.xml` doesn't exist, which may be why this test
passes on main.

Update dotnet#7073 to also assert the (non-?)existence of
`monodroid-config.xml`.  If it *does* exist, this would explain why
it's failing.

*If* it's failing because of `monodroid-config.xml`, the next question
becomes *why* it exists.  Update `BaseTest.TestSetup()` to assert
that it doesn't exist; when it does exist, tests will begin failing.
@jonpryor jonpryor reopened this Jun 10, 2022
@jonpryor
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

How does `ValidateAndroidSdkLocation()` accept a (what should be)
empty directory?
@jonpryor jonpryor force-pushed the jonp-check-InstallAndroidDependencies branch from 1f20b64 to 0e29341 Compare June 10, 2022 19:03
@jonpryor jonpryor closed this Jun 15, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant