You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by kf...@collab.net on 2005/05/20 20:08:54 UTC
[PATCH] Make test suite cooperate with ramdisks better.
Any objections to this, before I commit?
[[[
Make it easier to run the tests in a ramdisk.
* subversion/tests/clients/cmdline/svntest/main.py
(work_dir): New intermediate variable.
(general_repo_dir, general_wc_dir, local_tmp): Put these under the
work_dir, so all generated data goes under one mountable point.
]]]
Index: subversion/tests/clients/cmdline/svntest/main.py
===================================================================
--- subversion/tests/clients/cmdline/svntest/main.py (revision 14791)
+++ subversion/tests/clients/cmdline/svntest/main.py (working copy)
@@ -121,10 +121,14 @@
# Global variable indicating the FS type for repository creations.
fs_type = None
+# All temporary repositories and working copies are created underneath
+# this dir, so there's one point at which to mount, e.g., a ramdisk.
+work_dir = "work"
+
# Where we want all the repositories and working copies to live.
# Each test will have its own!
-general_repo_dir = "repositories"
-general_wc_dir = "working_copies"
+general_repo_dir = os.path.join(work_dir, "repositories")
+general_wc_dir = os.path.join(work_dir, "working_copies")
# A relative path that will always point to latest repository
current_repo_dir = None
@@ -133,7 +137,7 @@
# temp directory in which we will create our 'pristine' local
# repository and other scratch data. This should be removed when we
# quit and when we startup.
-temp_dir = 'local_tmp'
+temp_dir = os.path.join(work_dir, 'local_tmp')
# (derivatives of the tmp dir.)
pristine_dir = os.path.join(temp_dir, "repos")
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: [PATCH] Make test suite cooperate with ramdisks better.
Posted by kf...@collab.net.
kfogel@collab.net writes:
> > Any objections to this, before I commit?
> >
> > [[[
> > Make it easier to run the tests in a ramdisk.
> >
> > * subversion/tests/clients/cmdline/svntest/main.py
> > (work_dir): New intermediate variable.
> > (general_repo_dir, general_wc_dir, local_tmp): Put these under the
> > work_dir, so all generated data goes under one mountable point.
> > ]]]
>
> I forgot to say, this is just about the concept of the patch. Of
> course I'd update the docs as well.
Aaaargh, forget the whole thing. I should have tested that over
http:// before posting. I'll repost when this is done correctly.
D'oh,
-Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: [PATCH] Make test suite cooperate with ramdisks better.
Posted by kf...@collab.net.
kfogel@collab.net writes:
> Any objections to this, before I commit?
>
> [[[
> Make it easier to run the tests in a ramdisk.
>
> * subversion/tests/clients/cmdline/svntest/main.py
> (work_dir): New intermediate variable.
> (general_repo_dir, general_wc_dir, local_tmp): Put these under the
> work_dir, so all generated data goes under one mountable point.
> ]]]
I forgot to say, this is just about the concept of the patch. Of
course I'd update the docs as well.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org