Part of lp.services.scripts.tests
Function | find_lp_scripts | Find all scripts/ and cronscripts/ files in the current tree. |
Function | run_script | Run a script for testing purposes. |
Skips filename starting with '_' or not ending with '.py' or listed in the KNOWN_BROKEN blacklist.
Parameters | script_relpath | The relative path to the script, from the tree root. |
args | Arguments to provide to the script. | |
expect_returncode | The return code expected. If a different value is returned, and exception will be raised. | |
extra_env | A dictionary of extra environment variables to provide to the script, or None. |