You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Microsoft.DotNet.XHarness.Android/AdbRunner.cs
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -332,10 +332,17 @@ public int CopyHeadlessFolder(string testPath, bool sharedRuntime = false)
332
332
// 2. Installation cache on device is messed up; restarting the device reliably seems to unblock this (unless the device is actually full, if so this will error the same)
_log.LogWarning($"It seems the package installation cache may be full on the device. We'll try to reboot it before trying one more time.{Environment.NewLine}Output:{result}");
335
+
varfirstAttemptResult=result;
336
+
_log.LogWarning($"It seems the package installation cache may be full on the device. We'll try to reboot it before trying one more time.");
// 3. Installation timed out or failed with exception; restarting the ADB server, reboot the device and give more time for installation
@@ -392,10 +399,17 @@ public int InstallApk(string apkPath)
392
399
// 2. Installation cache on device is messed up; restarting the device reliably seems to unblock this (unless the device is actually full, if so this will error the same)
_log.LogWarning($"It seems the package installation cache may be full on the device. We'll try to reboot it before trying one more time.{Environment.NewLine}Output:{result}");
402
+
varfirstAttemptResult=result;
403
+
_log.LogWarning($"It seems the package installation cache may be full on the device. We'll try to reboot it before trying one more time.");
396
404
RebootAndroidDevice();
397
405
WaitForDevice();
398
406
result=RunAdbCommand(new[]{"install",apkPath});
407
+
408
+
// Only log the initial failure output if the retry also failed
0 commit comments