From a7d27626b8e50d8ae5f8912fc89fd096b34c82a3 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Tue, 14 Nov 2017 10:28:07 -0600 Subject: [PATCH] [tests] fix for ANDROID_SDK_PATH 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. --- build-tools/scripts/RunNUnitTests.targets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-tools/scripts/RunNUnitTests.targets b/build-tools/scripts/RunNUnitTests.targets index a10391aff..47af834eb 100644 --- a/build-tools/scripts/RunNUnitTests.targets +++ b/build-tools/scripts/RunNUnitTests.targets @@ -23,7 +23,8 @@ DestinationFolder="$(_TopDir)\bin\Test$(Configuration)" SkipUnchangedFiles="True" /> - + +