You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2012/03/08 16:40:53 UTC

svn commit: r1298434 - /subversion/trunk/subversion/bindings/swig/ruby/test/util.rb

Author: hwright
Date: Thu Mar  8 15:40:52 2012
New Revision: 1298434

URL: http://svn.apache.org/viewvc?rev=1298434&view=rev
Log:
Improve the ability to debug swig-rb bindings failures.

* subversion/bindings/swig/ruby/test/util.rb
  (setup_default_variables): Put the repository in a temporary location as well,
    so that each test uses its own repo.

Modified:
    subversion/trunk/subversion/bindings/swig/ruby/test/util.rb

Modified: subversion/trunk/subversion/bindings/swig/ruby/test/util.rb
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/ruby/test/util.rb?rev=1298434&r1=1298433&r2=1298434&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/ruby/test/util.rb (original)
+++ subversion/trunk/subversion/bindings/swig/ruby/test/util.rb Thu Mar  8 15:40:52 2012
@@ -37,14 +37,17 @@ module SvnTestUtil
     @author = ENV["USER"] || "sample-user"
     @password = "sample-password"
     @realm = "sample realm"
-    @repos_path = "repos"
-    @full_repos_path = File.expand_path(@repos_path)
-    @repos_uri = "file://#{@full_repos_path.sub(/^\/?/, '/')}"
+
     @svnserve_host = "127.0.0.1"
     @svnserve_ports = (64152..64282).collect{|x| x.to_s}
-    @wc_base_dir = Dir.mktmpdir
-    @wc_path = File.join(@wc_base_dir, "wc")
+
+    @test_tmp_dir = Dir.mktmpdir
+    @wc_path = File.join(@test_tmp_dir, "wc")
     @full_wc_path = File.expand_path(@wc_path)
+    @repos_path = File.join(@test_tmp_dir, "repos")
+    @full_repos_path = File.expand_path(@repos_path)
+    @repos_uri = "file://#{@full_repos_path.sub(/^\/?/, '/')}"
+
     @tmp_path = "tmp"
     @config_path = "config"
     @greek = Greek.new(@tmp_path, @wc_path, @repos_uri)
@@ -140,7 +143,7 @@ module SvnTestUtil
   end
 
   def teardown_wc
-    remove_recursively_with_retry(@wc_base_dir)
+    remove_recursively_with_retry(@wc_path)
   end
 
   def setup_config