Skip to content

Commit d17882c

Browse files
authored
Set explicit launch timeout for xharness on Apple mobile (#117979)
* [Apple] Disable failing Apple mobile string tests * Add LaunchTimeout to XHarnessAppBundleToTest for iOS * Add LaunchTimeout property to XHarnessAppBundleToTest for Apple mobile targets
1 parent 2ff366b commit d17882c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/libraries/sendtohelix-mobile.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
Include="$([System.IO.Directory]::GetDirectories('$(TestArchiveTestsRoot)', '*.app', System.IO.SearchOption.AllDirectories))">
9191
<TestTarget>$(AppleTestTarget)</TestTarget>
9292
<TestTimeout>$(_workItemTimeout)</TestTimeout>
93+
<LaunchTimeout>$(_workItemTimeout)</LaunchTimeout>
9394
<CustomCommands>$(_XHarnessAppleCustomCommand)</CustomCommands>
9495
</XHarnessAppBundleToTest>
9596

@@ -99,6 +100,7 @@
99100
Exclude="$([System.IO.Directory]::GetFiles('$(TestArchiveRoot)', 'xharness-app-payload*', System.IO.SearchOption.AllDirectories))">
100101
<TestTarget>$(AppleTestTarget)</TestTarget>
101102
<TestTimeout>$(_workItemTimeout)</TestTimeout>
103+
<LaunchTimeout>$(_workItemTimeout)</LaunchTimeout>
102104
<CustomCommands>$(_XHarnessAppleCustomCommand)</CustomCommands>
103105
</XHarnessAppBundleToTest>
104106

src/tests/Common/helixpublishwitharcade.proj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,13 +1010,15 @@
10101010
<XHarnessAppBundleToTest Include="@(LegacyPayloads->Metadata('PayloadZipFile'))" Condition="'$(TargetsAppleMobile)' == 'true'">
10111011
<TestTarget>$(AppleTestTarget)</TestTarget>
10121012
<TestTimeout Condition=" '$(TimeoutPerTestCollectionInMinutes)' != '' ">$([System.TimeSpan]::FromMinutes($(TimeoutPerTestCollectionInMinutes)))</TestTimeout>
1013+
<LaunchTimeout Condition=" '$(TimeoutPerTestCollectionInMinutes)' != '' ">$([System.TimeSpan]::FromMinutes($(TimeoutPerTestCollectionInMinutes)))</LaunchTimeout>
10131014
<CustomCommands> $(SigningCommand) dotnet $(XUnitRunnerDll) %(XUnitWrapperDlls) $(XUnitRunnerArgs)</CustomCommands>
10141015
</XHarnessAppBundleToTest>
10151016

10161017
<XHarnessAppBundleToTest Include="@(MergedPayloads->Metadata('PayloadGroup'))" Condition="'$(TargetsAppleMobile)' == 'true'">
10171018
<Arguments>--set-env=TestExclusionListPath=TestExclusionList.txt</Arguments>
10181019
<TestTarget>$(AppleTestTarget)</TestTarget>
10191020
<TestTimeout Condition=" '$(TimeoutPerTestCollectionInMinutes)' != '' ">$([System.TimeSpan]::FromMinutes($(TimeoutPerTestCollectionInMinutes)))</TestTimeout>
1021+
<LaunchTimeout Condition=" '$(TimeoutPerTestCollectionInMinutes)' != '' ">$([System.TimeSpan]::FromMinutes($(TimeoutPerTestCollectionInMinutes)))</LaunchTimeout>
10201022
</XHarnessAppBundleToTest>
10211023
</ItemGroup>
10221024

0 commit comments

Comments
 (0)