@@ -33,17 +33,19 @@ public void SelectTestsActionGatesForceAllOnBooleanInputNotPrBody()
3333 }
3434
3535 // The repo SDK can move ahead of the target framework used by SelectTests. The minimal bootstrap
36- // must install that runtime through Arcade's wrapper using the wrapper 's single-dash switches;
37- // unsupported raw dotnet-install switches make the setup job exit before test selection runs .
36+ // must install that SDK through Arcade's wrapper because MSBuildLocator needs the SDK 's MSBuild
37+ // assemblies; installing only the runtime can execute SelectTests but cannot build its project graph .
3838 [ Fact ]
39- public void SelectTestsActionInstallsPinnedRuntimeWithArcadeWrapperArguments ( )
39+ public void SelectTestsActionInstallsPinnedSdkWithArcadeWrapperArguments ( )
4040 {
4141 var action = File . ReadAllText ( SelectTestsActionPath ) ;
4242
43- Assert . Contains ( "<DotNetRuntimeNet10VersionForTesting>" , File . ReadAllText ( VersionsPropsPath ) ) ;
43+ Assert . Contains ( "<DotNetSdkNet10VersionForTesting>" , File . ReadAllText ( VersionsPropsPath ) ) ;
44+ Assert . Contains ( "<DotNetSdkNet10VersionForTesting>" , action ) ;
4445 Assert . Contains ( "./eng/common/dotnet-install.sh" , action ) ;
45- Assert . Contains ( "-runtime dotnet" , action ) ;
46- Assert . Contains ( "-version \" $runtime_version\" " , action ) ;
46+ Assert . Contains ( "-runtime sdk" , action ) ;
47+ Assert . Contains ( "-version \" $sdk_version\" " , action ) ;
48+ Assert . DoesNotContain ( "-runtime dotnet" , action ) ;
4749 Assert . DoesNotContain ( "--install-dir" , action ) ;
4850 Assert . DoesNotContain ( "--skip-non-versioned-files" , action ) ;
4951 }
0 commit comments