File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1902,16 +1902,14 @@ function Test-Dispatch([Platform]$Platform) {
1902
1902
- RedirectStandardOutput " $NDKDir \.temp\emulator.out" `
1903
1903
- RedirectStandardError " $NDKDir \.temp\emulator.err"
1904
1904
1905
- # TODO: Find a better indicator than a upper-bound delay
1906
- Start-Sleep - Seconds 5
1907
-
1908
1905
# This is just a hack for now
1909
1906
$LocalBin = (Get-TargetProjectBinaryCache $AndroidX64 Dispatch)
1910
1907
$CacheName = Split-Path $LocalBin - Leaf
1911
1908
$RemoteBin = " /data/local/tmp/$CacheName "
1912
1909
1913
1910
# TODO: On my local machine I have to grant network access once. How to do that in CI?
1914
1911
$adb = " $NDKDir \platform-tools\adb.exe"
1912
+ Invoke-Program $adb " wait-for-device"
1915
1913
Write-Host " $adb shell rm -rf $RemoteBin "
1916
1914
Invoke-Program $adb shell " rm -rf $RemoteBin "
1917
1915
Write-Host " $adb shell mkdir $RemoteBin "
@@ -1924,6 +1922,8 @@ function Test-Dispatch([Platform]$Platform) {
1924
1922
Invoke-Program $adb shell " chmod +x /data/local/tmp/ctest_mock.sh"
1925
1923
Write-Host " $adb shell sh /data/local/tmp/ctest_mock.sh $RemoteBin "
1926
1924
Invoke-Program $adb shell " sh /data/local/tmp/ctest_mock.sh $RemoteBin "
1925
+ Invoke-Program $adb emu kill
1926
+ Invoke-Program $adb kill- server
1927
1927
}
1928
1928
1929
1929
function Build-Foundation ([Platform ]$Platform , $Arch , [switch ]$Test = $false ) {
You can’t perform that action at this time.
0 commit comments