pytest-testinfra icon indicating copy to clipboard operation
pytest-testinfra copied to clipboard

Allow running background commands

Open philpep opened this issue 6 years ago • 0 comments

Example:

with host.run('journalctl', background=True) as p:
     host.run('logger foo')
assert 'foo' in p.stdout

Where journalctl would run and stop after the context manager exit.

philpep avatar Jun 05 '18 11:06 philpep