-
Committer:
Vincent Ladeuil
-
Date:
2009-09-18 12:54:01 UTC
-
mto:
(4713.1.1 integration)
-
mto:
This revision was merged to the branch mainline in
revision
4714.
-
Revision ID:
v.ladeuil+lp@free.fr-20090918125401-fb3gl822abfc8omt
Try to relax the test_case/script runner coupling.
* bzrlib/tests/script.py:
(ScriptRunner.__init__): Don't keep the test_case as an attribute,
require the jail_root instead.
(ScriptRunner.run_script, ScriptRunner.run_command,
ScriptRunner._check_output): Add a test_case parameter to be able
to use fail() and assertEqualDiff().
(ScriptRunner.do_bzr): Add a test_case parameter to be able to use
_run_bzr_core().
(ScriptRunner.do_cat, ScriptRunner.do_echo, ScriptRunner,
ScriptRunner.do_mkdir, ScriptRunner.do_rm): Add a test_case
parameter to be able... to be ready for the memory based resources
only implementation :)
(TestCaseWithMemoryTransportAndScript,
TestCaseWithTransportAndScript): Add docstring describing the
intent.