[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Make test suite cooperate with ramdisks better.

From: <kfogel_at_collab.net>
Date: 2005-05-20 22:08:54 CEST

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
Received on Fri May 20 22:45:37 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.