Skip to content

Commit c6fd4f2

Browse files
committed
Restart the Simulator.app and upload XUnit results
1 parent 06e0c06 commit c6fd4f2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ variables:
2121
- name: _HelixAccessToken
2222
value: ''
2323

24-
# PR trigger only
24+
# PR trigger only
2525
pr:
2626
branches:
2727
include:
@@ -186,7 +186,7 @@ stages:
186186
steps:
187187
- download: current
188188
artifact: Microsoft.DotNet.XHarness.CLI.OSX.IntegrationTests.Debug
189-
189+
190190
- template: /eng/common/templates/steps/send-to-helix.yml
191191
parameters:
192192
DisplayNamePrefix: Run Tests
@@ -198,12 +198,13 @@ stages:
198198
WaitForWorkItemCompletion: true
199199
HelixTargetQueues: osx.1015.amd64.ios.open
200200
Creator: xharness
201+
EnableXUnitReporter: true
201202
WorkItemDirectory: $(Pipeline.Workspace)/Microsoft.DotNet.XHarness.CLI.OSX.IntegrationTests.Debug
202203
WorkItemCommand: sudo launchctl asuser `id -u` sh osx-helix-payload.sh $HELIX_WORKITEM_UPLOAD_ROOT
203204
WorkItemTimeout: 00:12:00
204205
env:
205206
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
206-
HelixAccessToken: ''
207+
HelixAccessToken: ''
207208

208209
- ${{ if eq(variables._RunAsInternal, True) }}:
209210
- template: eng\common\templates\post-build\post-build.yml

tests/integration-tests/helix-payload/osx-helix-payload.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ dotnet tool install --no-cache --version $version --add-source .. Microsoft.DotN
3838
export XHARNESS_DISABLE_COLORED_OUTPUT=true
3939
export XHARNESS_LOG_WITH_TIMESTAMPS=true
4040

41-
# We have to call this otherwise mlaunch fails to spawn it properly
41+
# Restart the simulator to make sure it is tied to the right user session
4242
xcode_path=`xcode-select -p`
43+
pid=`ps aux | grep $xcode_path/Applications/Simulator.app | grep -v grep | tr -s ' ' | cut -d ' ' -f 2`
44+
sudo kill $pid
4345
open -a $xcode_path/Applications/Simulator.app
4446

4547
dotnet tool restore --no-cache

0 commit comments

Comments
 (0)