Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Fenoll <[email protected]>
  • Loading branch information
fenollp committed Aug 18, 2023
1 parent df69a05 commit 339f4e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
9 changes: 2 additions & 7 deletions pkg/resetter/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,19 @@ type Interface interface { // TODO: initers.Initer
// ExecStop executes the cleanup phase of the System Under Test
ExecStop(context.Context, progresser.Shower, bool, map[string]string) error

// TidyOutput filter maps over each line
TidyOutput([][]byte) TidiedOutput

// Terminate cleans up after a resetter.Interface implementation instance
Terminate(context.Context, progresser.Shower, map[string]string) error
}

type TidiedOutput [][]byte

var _ error = (*Error)(nil)

// Error describes a resetter error
type Error struct {
bt TidiedOutput
bt [][]byte
}

// NewError returns a new empty resetter.Error
func NewError(bt TidiedOutput) *Error {
func NewError(bt [][]byte) *Error {
return &Error{
bt: bt,
}
Expand Down
6 changes: 0 additions & 6 deletions pkg/resetter/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,6 @@ func (s *Resetter) ExecStop(ctx context.Context, shower progresser.Shower, only
return s.exec(ctx, shower, envRead, cmdStop)
}

// TidyOutput filter maps over each line
func (s *Resetter) TidyOutput(stdeither [][]byte) resetter.TidiedOutput {
// for
return stdeither
}

// Terminate cleans up after a resetter.Interface implementation instance
func (s *Resetter) Terminate(ctx context.Context, shower progresser.Shower, envRead map[string]string) (err error) {
if hasStop := strings.TrimSpace(s.Stop) != ""; hasStop {
Expand Down

0 comments on commit 339f4e5

Please sign in to comment.