Skip to content

icmd is not usable when the tested binary expects a console #287

@apostasie

Description

@apostasie

Assume you want to pass along a pty, because the binary you are testing expects a console.

Since icmd does replace stdout with an io.Multiwriter, this won't work.
icmd should not do that, or at least expose a way for the user to prevent icmd from doing it (eg: io.Copy would be a better approach)

I appreciate this might be a minority case that icmd does not want to cover, but then, current implementation feels wrong.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions