Skip to content

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

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?"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions