saltfactories.utils.cli_scripts#

Code to generate Salt CLI scripts for test runs.

saltfactories.utils.cli_scripts.generate_script(bin_dir, script_name, code_dir=None, inject_sitecustomize=False, coverage_db_path=None, coverage_rc_path=None)[source]#

Generate a CLI script.

Parameters:
  • bin_dir (Path) – The path to the directory which will contain the CLI scripts

  • script_name (str) – The CLI script name

  • code_dir (Path) – The project’s being tested root directory path

  • inject_sitecustomize (bool) – Inject code to support code coverage in subprocesses

  • coverage_db_path (Path) – The path to the .coverage DB file

  • coverage_rc_path (Path) – The path to the .coveragerc file