Skip to content

Conversation

@jonathanpeppers
Copy link
Member

Context: https://github.com/xamarin/xamarin-android/blob/master/build-tools/scripts/RunTests.targets#L50
Context: https://devdiv.visualstudio.com/DevDiv/Default/_build/index?buildId=1138588&_a=summary&tab=ms.vss-test-web.test-result-details

On Windows, the Java.Interop tests are not getting the ANDROID_SDK_PATH
environment variable set. This is somehow working on macOS, but I think
it might be simpler in this case to pass in the AndroidSdkDirectory
property from RunTests.targets in xamarin-android.

This approach worked when testing locally. I will need to bump Java.Interop
and make one further change in xamarin-android to pass in
AndroidSdkDirectory. This will get a few skipped tests in Java.Interop
running and passing on Windows.

Context: https://github.com/xamarin/xamarin-android/blob/master/build-tools/scripts/RunTests.targets#L50
Context: https://devdiv.visualstudio.com/DevDiv/Default/_build/index?buildId=1138588&_a=summary&tab=ms.vss-test-web.test-result-details

On Windows, the Java.Interop tests are not getting the `ANDROID_SDK_PATH`
environment variable set. This is somehow working on macOS, but I think
it might be simpler in this case to pass in the `AndroidSdkDirectory`
property from `RunTests.targets` in xamarin-android.

This approach worked when testing locally. I will need to bump Java.Interop
and make one further change in xamarin-android to pass in
`AndroidSdkDirectory`. This will get a few skipped tests in Java.Interop
running and passing on Windows.
@dnfclas
Copy link

dnfclas commented Nov 14, 2017

@jonathanpeppers,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@jonpryor jonpryor merged commit f90f006 into dotnet:master Nov 14, 2017
jonathanpeppers added a commit to jonathanpeppers/xamarin-android that referenced this pull request Nov 14, 2017
Context: dotnet/java-interop#211

Looking to fix `ANDROID_SDK_PATH` not set in tests on Windows.
jonathanpeppers added a commit to jonathanpeppers/xamarin-android that referenced this pull request Nov 15, 2017
Context: dotnet/java-interop#211

Looking to fix `ANDROID_SDK_PATH` not set in tests on Windows.
jonathanpeppers added a commit to jonathanpeppers/xamarin-android that referenced this pull request Nov 17, 2017
Context: dotnet/java-interop#211

For Windows to set `ANDROID_SDK_PATH` for the Java.Interop unit tests,
we need to pass `$(AndroidSdkDirectory)` through.

Otherwise a few tests get skipped in
Xamarin.Android.Tools.Bytecode-Tests.dll.
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 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.

3 participants