Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ if ($ev) {
$process.WaitForExit()
[Console]::Out.Flush()
Write-Output "User command timed out after $command_timeout seconds!"
$adb_path=dotnet xharness android state --adb
Comment thread
greenEkatherine marked this conversation as resolved.
Outdated
$packages=& $adb_path shell pm list packages net.dot
$split_packages=$packages.split(':')
For ($i=1; $i -lt $split_packages.Length; $i+=2) {
echo $split_packages[$i] | %{&$adb_path uninstall $_}
}
} else {
$exit_code = $process.ExitCode
Write-Output "User command ended with $exit_code"
Expand All @@ -70,6 +76,14 @@ switch ($exit_code)
78 {
Write-Error "Encountered PACKAGE_INSTALLATION_FAILURE. This is typically not a failure of the work item. We will try it again on another Helix agent"
Write-Error "If this occurs repeatedly, please check for architectural mismatch, e.g. requesting installation on arm64_v8a-only queue for x86 or x86_64 APKs."

$adb_path=dotnet xharness android state --adb
$packages=& $adb_path shell pm list packages net.dot
$split_packages=$packages.split(':')
For ($i=1; $i -lt $split_packages.Length; $i+=2) {
echo $split_packages[$i] | %{&$adb_path uninstall $_}
}

$retry=$true
Break
}
Expand Down