File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
src/Tests/dotnet-MsiInstallation.Tests/Framework Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,23 @@ protected void InstallSdk(bool deployStage2 = true)
66
66
. Should ( )
67
67
. Pass ( ) ;
68
68
69
- VM . CreateRunCommand ( $@ "c:\SdkTesting\{ SdkInstallerFileName } ", "/quiet" )
70
- . WithDescription ( $ "Install SDK { SdkInstallerVersion } ")
69
+ var sdkTestingDir = VM . GetRemoteDirectory ( @"c:\SdkTesting" ) ;
70
+ List < string > runtimeInstallers = new List < string > ( ) ;
71
+ string installerPrefix = "dotnet-runtime-" ;
72
+ string installerSuffix = "-win-x64.exe" ;
73
+ foreach ( var file in sdkTestingDir . Files . Select ( Path . GetFileName ) )
74
+ {
75
+ if ( file . StartsWith ( installerPrefix ) && file . EndsWith ( installerSuffix ) )
76
+ {
77
+ runtimeInstallers . Add ( file ) ;
78
+ }
79
+ }
80
+
81
+ VM . CreateActionGroup ( $ "Install SDK { SdkInstallerVersion } ",
82
+ [
83
+ VM . CreateRunCommand ( $@ "c:\SdkTesting\{ SdkInstallerFileName } ", "/quiet" ) ,
84
+ ..runtimeInstallers . Select ( i => VM . CreateRunCommand ( $@ "c:\SdkTesting\{ i } ", "/quiet" ) )
85
+ ] )
71
86
. Execute ( )
72
87
. Should ( )
73
88
. Pass ( ) ;
You can’t perform that action at this time.
0 commit comments