Skip to content

Commit e1cc0c5

Browse files
committed
Replace direct adb calls with xharness android adb
To avoid requiring `adb` in `PATH`
1 parent 97062d5 commit e1cc0c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration-test/android.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ Describe 'MAUI app' -ForEach @(
7878
Write-Host "Waiting for app..."
7979
Start-Sleep -Seconds 1
8080

81-
$procid = (& adb shell pidof "io.sentry.dotnet.maui.device.integrationtestapp") -replace '\s', ''
82-
$activity = (& adb shell dumpsys activity activities) -match "io\.sentry\.dotnet\.maui\.device\.integrationtestapp"
81+
$procid = (& xharness android adb -- shell pidof "io.sentry.dotnet.maui.device.integrationtestapp") -replace '\s', ''
82+
$activity = (& xharness android adb -- shell dumpsys activity activities) -match "io\.sentry\.dotnet\.maui\.device\.integrationtestapp"
8383

8484
} while ($procid -and $activity)
8585

0 commit comments

Comments
 (0)