pytest-testinfra
pytest-testinfra copied to clipboard
Allow running background commands
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.