From 6f1322bdfdcb770af04dc6559a6b4322edeb81f6 Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Thu, 7 Nov 2024 10:56:44 +0000 Subject: [PATCH] [ci] Fix provisioning with sudo (#25722) * try with sudo * dont do doctor --- eng/pipelines/common/provision.yml | 5 +++-- eng/scripts/appium-install.ps1 | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/eng/pipelines/common/provision.yml b/eng/pipelines/common/provision.yml index 27ad2dad5d3b..b0d03765de7b 100644 --- a/eng/pipelines/common/provision.yml +++ b/eng/pipelines/common/provision.yml @@ -58,8 +58,9 @@ steps: sudo xcode-select -s /Applications/Xcode_$(REQUIRED_XCODE).app xcrun xcode-select --print-path xcodebuild -version - xcodebuild -downloadAllPlatforms - xcodebuild -runFirstLaunch + sudo xcodebuild -license accept + sudo xcodebuild -downloadAllPlatforms + sudo xcodebuild -runFirstLaunch displayName: Select Xcode Version condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin')) timeoutInMinutes: 30 diff --git a/eng/scripts/appium-install.ps1 b/eng/scripts/appium-install.ps1 index d39514aa49fc..7d96c27c9129 100644 --- a/eng/scripts/appium-install.ps1 +++ b/eng/scripts/appium-install.ps1 @@ -198,8 +198,8 @@ if ($IsWindows) { appium driver doctor windows || & { "ignore failure"; $global:LASTEXITCODE = 0 } } if ($IsMacOS) { - appium driver doctor xcuitest || & { "ignore failure"; $global:LASTEXITCODE = 0 } - appium driver doctor mac2 || & { "ignore failure"; $global:LASTEXITCODE = 0 } + # appium driver doctor xcuitest || & { "ignore failure"; $global:LASTEXITCODE = 0 } + # appium driver doctor mac2 || & { "ignore failure"; $global:LASTEXITCODE = 0 } } appium driver doctor uiautomator2 || & { "ignore failure"; $global:LASTEXITCODE = 0 }