Skip to content

Commit

Permalink
Debug install location
Browse files Browse the repository at this point in the history
  • Loading branch information
MDrakos committed Oct 10, 2023
1 parent 5dddb97 commit 72fcd84
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/integration/install_scripts_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ func (suite *InstallScriptsIntegrationTestSuite) TestInstall() {
// Fetch it.
b, err := httputil.GetDirect(scriptUrl)
suite.Require().NoError(err)
fmt.Println("Script contents:", string(b))
script := filepath.Join(ts.Dirs.Work, scriptBaseName)
suite.Require().NoError(fileutils.WriteFile(script, b))

Expand Down Expand Up @@ -122,8 +121,6 @@ func (suite *InstallScriptsIntegrationTestSuite) TestInstall() {

cp.SendLine("which state")
cp.Expect("state")
cp.SendLine("env | grep PATH")
cp.Expect("PATH")
cp.SendLine("state --version")
cp.Expect("Version " + constants.Version)
cp.Expect("Branch " + constants.BranchName)
Expand Down Expand Up @@ -226,7 +223,9 @@ func expectStateToolInstallation(cp *e2e.SpawnedCmd) {

// assertBinDirContents checks if given files are or are not in the bin directory
func (suite *InstallScriptsIntegrationTestSuite) assertBinDirContents(dir string) {
fmt.Println("Searching dir:", dir)
binFiles := listFilesOnly(dir)
fmt.Println("Bin files:", binFiles)
suite.Contains(binFiles, "state"+osutils.ExeExt)
suite.Contains(binFiles, "state-svc"+osutils.ExeExt)
}
Expand Down

0 comments on commit 72fcd84

Please sign in to comment.