Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions test/integration/remote_installer_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (suite *RemoteInstallIntegrationTestSuite) TestInstall() {
installPath := filepath.Join(ts.Dirs.Work, "install")
stateExePath := filepath.Join(installPath, "bin", constants.StateCmd+osutils.ExeExtension)

args := []string{"-n"}
args := []string{"--non-interactive"}
Copy link
Member

Choose a reason for hiding this comment

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

Did -n not work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It did, but I like that this is more explicit.

if tt.Version != "" {
args = append(args, "--version", tt.Version)
}
Expand All @@ -93,10 +93,15 @@ func (suite *RemoteInstallIntegrationTestSuite) TestInstall() {
)

cp.Expect("Terms of Service")
cp.SendLine("Y")
cp.Expect("Continuing because State Tool is running in non-interactive mode")
cp.Expect("Downloading")
cp.Expect("Running Installer...")
cp.Expect("Installing")
if runtime.GOOS == "windows" {
cp.Expect("You are installing the State Tool as an admin")
cp.Expect("Are you sure")
cp.Expect("Continuing because State Tool is running in non-interactive mode")
}
cp.Expect("Installation Complete")
cp.Expect("Press ENTER to exit")
cp.SendEnter()
Expand Down
Loading