|
61 | 61 | <Xamarin.Android.Tools.BootstrapTasks.Adb |
62 | 62 | EnvironmentVariables="ADB_TRACE=all" |
63 | 63 | Condition=" '$(_ValidAdbTarget)' != 'True' " |
| 64 | + ContinueOnError="ErrorAndContinue" |
64 | 65 | Arguments="$(_EmuTarget) shell 'counter=0; while [ $counter -lt 60 ] && [ "`getprop sys.boot_completed`" != "1" ]; do echo Waiting for device to fully boot; sleep 1; let "counter++"; done'" |
65 | 66 | ToolExe="$(AdbToolExe)" |
66 | 67 | ToolPath="$(AdbToolPath)" |
67 | 68 | Timeout="120000" |
68 | 69 | /> |
69 | 70 | <Xamarin.Android.Tools.BootstrapTasks.Adb |
70 | 71 | Arguments="$(_AdbTarget) shell setprop debug.mono.log timing" |
| 72 | + IgnoreExitCode="True" |
71 | 73 | ToolExe="$(AdbToolExe)" |
72 | 74 | ToolPath="$(AdbToolPath)" |
73 | 75 | Timeout="60000" |
74 | 76 | /> |
75 | 77 | <Xamarin.Android.Tools.BootstrapTasks.Adb |
76 | 78 | Arguments="$(_AdbTarget) logcat -G 4M" |
| 79 | + IgnoreExitCode="True" |
77 | 80 | ToolExe="$(AdbToolExe)" |
78 | 81 | ToolPath="$(AdbToolPath)" |
79 | 82 | Timeout="60000" |
|
87 | 90 | <Target Name="ReleaseAndroidTarget"> |
88 | 91 | <Xamarin.Android.Tools.BootstrapTasks.Adb |
89 | 92 | Condition="'@(_FailedComponent)' != ''" |
90 | | - ContinueOnError="True" |
| 93 | + ContinueOnError="ErrorAndContinue" |
91 | 94 | Arguments="$(_EmuTarget) logcat -d" |
92 | 95 | ToolExe="$(AdbToolExe)" |
93 | 96 | ToolPath="$(AdbToolPath)" |
94 | 97 | Timeout="120000" |
95 | 98 | /> |
96 | 99 | <Xamarin.Android.Tools.BootstrapTasks.Adb |
97 | 100 | Condition=" '$(_EmuTarget)' != '' " |
98 | | - ContinueOnError="True" |
| 101 | + ContinueOnError="ErrorAndContinue" |
99 | 102 | Arguments="$(_EmuTarget) emu kill" |
100 | 103 | ToolExe="$(AdbToolExe)" |
101 | 104 | ToolPath="$(AdbToolPath)" |
102 | 105 | Timeout="60000" |
103 | 106 | /> |
104 | 107 | <KillProcess |
105 | 108 | Condition=" '$(_EmuTarget)' != '' " |
106 | | - ContinueOnError="True" |
| 109 | + ContinueOnError="ErrorAndContinue" |
107 | 110 | ProcessId="$(_EmuPid)" |
108 | 111 | /> |
109 | 112 | <Xamarin.Android.Tools.BootstrapTasks.Adb |
110 | 113 | Arguments="kill-server" |
111 | | - ContinueOnError="True" |
| 114 | + ContinueOnError="ErrorAndContinue" |
112 | 115 | ToolExe="$(AdbToolExe)" |
113 | 116 | ToolPath="$(AdbToolPath)" |
114 | 117 | Timeout="60000" |
115 | 118 | /> |
116 | 119 | <Exec |
117 | 120 | Condition=" '$(HostOS)' != 'Windows' And '$(_EmuTarget)' != '' " |
118 | | - ContinueOnError="True" |
| 121 | + ContinueOnError="ErrorAndContinue" |
119 | 122 | Command="kill -HUP $(_EmuPid)" |
120 | 123 | /> |
121 | 124 | <Sleep |
|
124 | 127 | /> |
125 | 128 | <Exec |
126 | 129 | Condition=" '$(HostOS)' != 'Windows' And '$(_EmuTarget)' != '' " |
127 | | - ContinueOnError="True" |
| 130 | + ContinueOnError="ErrorAndContinue" |
128 | 131 | Command="kill -KILL $(_EmuPid)" |
129 | 132 | /> |
130 | 133 | </Target> |
|
149 | 152 | Condition=" '@(TestApk)' != '' "> |
150 | 153 | <Xamarin.Android.Tools.BootstrapTasks.Adb |
151 | 154 | Arguments="$(_AdbTarget) $(AdbOptions) install "%(TestApk.Identity)"" |
| 155 | + ContinueOnError="ErrorAndContinue" |
152 | 156 | ToolExe="$(AdbToolExe)" |
153 | 157 | ToolPath="$(AdbToolPath)" |
154 | 158 | Timeout="120000" |
|
170 | 174 | Condition=" '@(TestApk)' != '' "> |
171 | 175 | <Xamarin.Android.Tools.BootstrapTasks.Adb |
172 | 176 | Condition=" '@(TestApkPermission)' != '' " |
| 177 | + ContinueOnError="ErrorAndContinue" |
173 | 178 | Arguments="$(_AdbTarget) $(AdbOptions) shell pm grant %(TestApkPermission.Package) android.permission.%(TestApkPermission.Identity)" |
174 | 179 | ToolExe="$(AdbToolExe)" |
175 | 180 | ToolPath="$(AdbToolPath)" |
|
182 | 187 | </PropertyGroup> |
183 | 188 | <RunInstrumentationTests |
184 | 189 | Condition=" '%(TestApkInstrumentation.Identity)' != ''" |
| 190 | + ContinueOnError="ErrorAndContinue" |
185 | 191 | AdbTarget="$(_AdbTarget)" |
186 | 192 | AdbOptions="$(AdbOptions)" |
187 | 193 | LogLevel="Verbose" |
188 | | - PackageName="%(TestApkInstrumentation.Package)" |
| 194 | + PackageName="%(TestApkInstrumentation.Package)" |
189 | 195 | Component="%(TestApkInstrumentation.Package)/%(TestApkInstrumentation.Identity)" |
190 | 196 | NUnit2TestResultsFile="%(TestApkInstrumentation.ResultsPath)" |
191 | 197 | LogcatFilename="$(_LogcatFilenameBase)-%(TestApkInstrumentation.Package).txt" |
|
198 | 204 | </RunInstrumentationTests> |
199 | 205 | <RunUITests |
200 | 206 | Condition=" '%(TestApk.Activity)' != '' " |
| 207 | + ContinueOnError="ErrorAndContinue" |
201 | 208 | AdbTarget="$(_AdbTarget)" |
202 | 209 | AdbOptions="$(AdbOptions)" |
203 | 210 | Activity="%(TestApk.Activity)" |
|
208 | 215 | </RunUITests> |
209 | 216 | <ProcessLogcatTiming |
210 | 217 | Condition=" '%(TestApk.TimingDefinitionsFilename)' != '' And Exists ('$(_LogcatFilenameBase)-%(TestApk.Package).txt')" |
| 218 | + ContinueOnError="ErrorAndContinue" |
211 | 219 | InputFilename="$(_LogcatFilenameBase)-%(TestApk.Package).txt" |
212 | 220 | ApplicationPackageName="%(TestApk.Package)" |
213 | 221 | ResultsFilename="%(TestApk.TimingResultsFilename)" |
|
260 | 268 | <Exec |
261 | 269 | Condition=" '$(HostOS)' == 'Darwin' And '%(TestApk.ApkSizesDefinitionFilename)' != '' " |
262 | 270 | Command="stat -f "stat: %z %N" "%(TestApk.Identity)" > "$(OutputPath)%(TestApk.ApkSizesInputFilename)"" |
| 271 | + ContinueOnError="ErrorAndContinue" |
263 | 272 | /> |
264 | 273 | <Exec |
265 | 274 | Condition=" '$(HostOS)' == 'Linux' And '%(TestApk.ApkSizesDefinitionFilename)' != '' " |
266 | 275 | Command="stat -c "stat: %s %N" "%(TestApk.Identity)" > "$(OutputPath)%(TestApk.ApkSizesInputFilename)"" |
| 276 | + ContinueOnError="ErrorAndContinue" |
267 | 277 | /> |
268 | 278 | <Exec |
269 | 279 | Condition=" '%(TestApk.ApkSizesDefinitionFilename)' != '' " |
270 | | - Command="unzip -l "%(TestApk.Identity)" >> "$(OutputPath)%(TestApk.ApkSizesInputFilename)"" /> |
| 280 | + Command="unzip -l "%(TestApk.Identity)" >> "$(OutputPath)%(TestApk.ApkSizesInputFilename)"" |
| 281 | + ContinueOnError="ErrorAndContinue" /> |
271 | 282 | <ProcessPlotInput |
272 | 283 | Condition=" '%(TestApk.ApkSizesDefinitionFilename)' != '' " |
273 | 284 | InputFilename="$(OutputPath)%(TestApk.ApkSizesInputFilename)" |
|
276 | 287 | DefinitionsFilename="%(TestApk.ApkSizesDefinitionFilename)" |
277 | 288 | AddResults="True" |
278 | 289 | LabelSuffix="-$(Configuration)$(TestsAotName)" |
| 290 | + ContinueOnError="ErrorAndContinue" |
279 | 291 | /> |
280 | 292 | </Target> |
281 | 293 | </Project> |
0 commit comments