Skip to content

Pass configuration as a parameter for local Apple mobile test runs#63348

Merged
steveisok merged 1 commit intodotnet:mainfrom
steveisok:specify-ios-config-local
Jan 4, 2022
Merged

Pass configuration as a parameter for local Apple mobile test runs#63348
steveisok merged 1 commit intodotnet:mainfrom
steveisok:specify-ios-config-local

Conversation

@steveisok
Copy link
Member

Reverts #62549 as the configuration parameter is needed to let xharness know where the iOS/tvOS/MacCatalyst test app is.

For example, a debug test app will be under Debug-iphoneos and a release one will be under Release-iphoneos. Xharness won't be able to tell unless provided the right info.

dotnet#62549 removed the parameter as it's needed to let xharness know where the
iOS/tvOS/MacCatalyst test app is. For example, a debug test app will be under Debug-iphoneos and a release one will be under Release-iphoneos. Xharness won't be able to tell unless provided the right info.
@steveisok steveisok requested a review from marek-safar as a code owner January 4, 2022 17:24
@ghost ghost assigned steveisok Jan 4, 2022
@ghost
Copy link

ghost commented Jan 4, 2022

Tagging subscribers to this area: @directhex
See info in area-owners.md if you want to be subscribed.

Issue Details

Reverts #62549 as the configuration parameter is needed to let xharness know where the iOS/tvOS/MacCatalyst test app is.

For example, a debug test app will be under Debug-iphoneos and a release one will be under Release-iphoneos. Xharness won't be able to tell unless provided the right info.

Author: steveisok
Assignees: -
Labels:

area-Infrastructure-mono

Milestone: -

Copy link
Member

@mdh1418 mdh1418 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!


<PropertyGroup Condition="'$(TargetsMobile)' == 'true'">
<RunTestsCommand>"$(RunScriptOutputPath)" $(AssemblyName) $(TargetArchitecture) $(TargetOS.ToLowerInvariant()) $(TestProjectName)</RunTestsCommand>
<RunTestsCommand Condition="'$(TargetsAppleMobile)' == 'true'">$(RunTestsCommand) $(Configuration) $(AdditionalXHarnessArguments)</RunTestsCommand>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does $(Configuration) need to be before the AdditionalXHarnessArguments? Otherwise we can move it to the first line and remove the RunTestsCommand conditioned for Android.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it does. It's technically an argument into https://github.com/dotnet/runtime/blob/main/eng/testing/AppleRunnerTemplate.sh and not into xharness.

@steveisok steveisok merged commit 00952e1 into dotnet:main Jan 4, 2022
@steveisok steveisok deleted the specify-ios-config-local branch January 4, 2022 20:57
@ghost ghost locked as resolved and limited conversation to collaborators Feb 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants