Skip to content

Some commands require further input after sending remote commands. #780

@chengxiang1997

Description

@chengxiang1997

Some commands require further input after sending remote commands. What can I do if I'm using TestInfra?
For example, when I input mkfs.ext4 /dev/sdb, it prompts the following content:

[root@localhost ~]# mkfs.ext4 /dev/sdb
mke2fs 1.42.9 (28-Dec-2013)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n)

If I want to further input y through a Python script, how can I do that?"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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