Skip to content

tests: Provide a way to run tests with PTY stdout #5785

Description

@RenjiSann

Some utils' behavior may change depending on the stdout().is_terminal() answer.
This is the case for ls which adapts its default quoting style depending on STDOUT being a TTY or not.

The issue is that from what I saw, the testing utilities do not provide any way to test these TTY behaviors.

Maybe we could adapt the utilities to offer such verifications.
A straighforward way to go would be to use the pty_process crate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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