File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ func (suite *RemoteInstallIntegrationTestSuite) TestInstall() {
7474 installPath := filepath .Join (ts .Dirs .Work , "install" )
7575 stateExePath := filepath .Join (installPath , "bin" , constants .StateCmd + osutils .ExeExtension )
7676
77- args := []string {"-n " }
77+ args := []string {"--non-interactive " }
7878 if tt .Version != "" {
7979 args = append (args , "--version" , tt .Version )
8080 }
@@ -93,10 +93,15 @@ func (suite *RemoteInstallIntegrationTestSuite) TestInstall() {
9393 )
9494
9595 cp .Expect ("Terms of Service" )
96- cp .SendLine ( "Y " )
96+ cp .Expect ( "Continuing because State Tool is running in non-interactive mode " )
9797 cp .Expect ("Downloading" )
9898 cp .Expect ("Running Installer..." )
9999 cp .Expect ("Installing" )
100+ if runtime .GOOS == "windows" {
101+ cp .Expect ("You are installing State Tool as an admin" )
102+ cp .Expect ("Are you sure?" )
103+ cp .Expect ("Continuing because State Tool is running in non-interactive mode" )
104+ }
100105 cp .Expect ("Installation Complete" )
101106 cp .Expect ("Press ENTER to exit" )
102107 cp .SendEnter ()
You can’t perform that action at this time.
0 commit comments