I encountered some situations on the python tests where a working copy is
created during sbox_build(), but the working copy afterwards is never used
in that test. For performance reasons, I'd like to remove this situations.
Attached patch provides an option in sbox.build() that - when set - disables
the creation of the working copy.
A search through all the python tests showed me that the working copy is not
used (but created) in these tests:
copy_tests.py: double_uri_escaping_1814, copy_to_root,
url_to_non_existent_url_path, non_existent_url_to_url, old_dir_url_to_url
export_tests.py: export_empty_directory, export_greek_tree
authz_tests.py: broken_authz_file, authz_read_access,
So I changed all those python test files and updated the tests.
One strange issue that I encountered during this change, is that while 'svn
co working_copies/export_tests_1' creates the intermediate working_copies
folder, 'svn export working_copies/export_tests_1' doesn't. I'd expect
consistency between checkout and export here. Is that a bug?
I ran the tests successfully locally and run the patch on my mac buildslave.
Improve performance of the python tests by not creating a working copy when
none is needed.
Updated copyright date of the tests to 2006 where needed.
Patch by: Lieven Govaerts <email@example.com>
(Sandbox.build): Allow the user to pass an option to disable the creation
of a working copy.
(make_repo_and_wc): When create_wc option is False do not checkout the
Make sure the svn-test-work/working_copies folder is created
The following tests are all changed to not request a working copy to be
Received on Sat May 13 16:26:42 2006
To unsubscribe, e-mail: firstname.lastname@example.org
For additional commands, e-mail: email@example.com