Skip to content

Commit

Permalink
Revert windows output workaround as it creates false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
Naatan committed Aug 31, 2023
1 parent 35596a7 commit a260bf3
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions internal/testhelpers/e2e/spawn.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,6 @@ type SpawnedCmd struct {
opts SpawnOpts
}

func (s *SpawnedCmd) Output() string {
if runtime.GOOS != "windows" {
return s.TermTest.Output()
}
// For some reason on Windows the PTY starts with the path of the executable followed by the unicode Alert character (U+0007)
// For now we are working around this bug here
out := s.TermTest.Output()
if i := strings.Index(out, "\a"); i != -1 {
out = out[i+1:]
}
return out
}

func (s *SpawnedCmd) WorkDirectory() string {
return s.TermTest.Cmd().Dir
}
Expand Down

0 comments on commit a260bf3

Please sign in to comment.