Environment Management (functional_harness/env.py)

Assorted context managers for setting up the test environment

background_proc(argv, 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’s stdout and stderr to /dev/null

  • args (Any) – Positional arguments to pass to subprocess.Popen

  • kwargs (Any) – Keyword arguments to pass to subprocess.Popen

Return type:

Generator[Popen[Any], None, None]