Environment Management (functional_harness/env_general.py
)¶
Assorted context managers for setting up the test environment
- background_proc(argv, env, verbose=False, *args, **kwargs)[source]¶
Context manager for scoping the lifetime of a
subprocess.Popen
call- Parameters:
argv – The command to be executed
verbose – If
False
, redirect the X server’sstdout
andstderr
to/dev/null
args (
Any
) – Positional arguments to pass tosubprocess.Popen
kwargs (
Any
) – Keyword arguments to pass tosubprocess.Popen
- Return type: