Part of bzrlib.tests.script View In Hierarchy
Run a shell-like script from a test.
Can be used as:
from bzrlib.tests import script
...
- def test_bug_nnnnn(self):
- sr = script.ScriptRunner() sr.run_script(self, ''' $ bzr init $ bzr do-this # Boom, error ''')
Method | __init__ | Undocumented |
Method | run_script | Run a shell-like script as a test. |
Method | run_command | Undocumented |
Method | do_bzr | Undocumented |
Method | do_cat | Undocumented |
Method | do_echo | Undocumented |
Method | do_cd | Undocumented |
Method | do_mkdir | Undocumented |
Method | do_rm | Undocumented |
Method | do_mv | Undocumented |
Method | _check_output | Undocumented |
Method | _pre_process_args | Undocumented |
Method | _read_input | Undocumented |
Method | _write_output | Undocumented |
Method | _get_jail_root | Undocumented |
Method | _ensure_in_jail | Undocumented |
Parameters | test_case | A TestCase instance that should provide the fail(), assertEqualDiff and _run_bzr_core() methods as well as a 'test_dir' attribute used as a jail root. |
text | A shell-like script (see _script_to_commands for syntax). | |
null_output_matches_anything | For commands with no specified output, ignore any output that does happen, including output on standard error. |