From 06d6f531cccde41b8b64ea7cfa8548c82f639af4 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Fri, 16 Jun 2017 17:26:14 +0200 Subject: [PATCH] [tests] add 1 second sleep after adb wait-for-device command - looks like the adb's wait-for-device function sometime doesn't work perfectly and we are timeouting in our tests, which run on emulator, because adb gets stuck when executing next adb command - added Sleep task - also set ADB_TRACE environment variable to `all` for adb commands we are interested in. in case the added sleep doesn't help, we might at least get some more useful information --- build-tools/scripts/UnitTestApks.targets | 11 ++++++++-- .../Sleep.cs | 21 +++++++++++++++++++ .../xa-prep-tasks/xa-prep-tasks.csproj | 1 + 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/Sleep.cs diff --git a/build-tools/scripts/UnitTestApks.targets b/build-tools/scripts/UnitTestApks.targets index 9f0635ad9c7..d7672235995 100644 --- a/build-tools/scripts/UnitTestApks.targets +++ b/build-tools/scripts/UnitTestApks.targets @@ -6,6 +6,7 @@ + <_TestImageName>XamarinAndroidUnitTestRunner @@ -41,17 +42,23 @@ - + +