subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1567819 - /subversion/trunk/subversion/tests/cmdline/autoprop_tests.py
Date Thu, 13 Feb 2014 00:43:14 GMT
Author: rhuijben
Date: Thu Feb 13 00:43:13 2014
New Revision: 1567819

URL: http://svn.apache.org/r1567819
Log:
Following up on r1567752, use proper cleanup tracked temp directories instead
of filling up the general temp directory for the autoprop tests.

* subversion/tests/cmdline/autoprop_tests.py
  (autoprops_test,
   inheritable_autoprops_test): Use tracked tempdir based on sbox name.
  (svn_prop_inheritable_autoprops_add_versioned_target):
    Don't use a shared directory for a test specific temp dir.

Modified:
    subversion/trunk/subversion/tests/cmdline/autoprop_tests.py

Modified: subversion/trunk/subversion/tests/cmdline/autoprop_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/autoprop_tests.py?rev=1567819&r1=1567818&r2=1567819&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/autoprop_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/autoprop_tests.py Thu Feb 13 00:43:13 2014
@@ -102,9 +102,7 @@ def autoprops_test(sbox, cmd, cfgenable,
 
   # some directories
   wc_dir = sbox.wc_dir
-  tmp_dir = os.path.join(os.path.abspath(svntest.main.temp_dir), sbox.name)
-  if not os.path.isdir(tmp_dir):
-    os.makedirs(tmp_dir)
+  tmp_dir = sbox.add_wc_path('autoprops')
   config_dir = os.path.join(tmp_dir, 'autoprops_config_' + sbox.name)
   repos_url = sbox.repo_url
 
@@ -417,7 +415,7 @@ def inheritable_autoprops_test(sbox, cmd
 
   # some directories
   wc_dir = sbox.wc_dir
-  tmp_dir = os.path.abspath(svntest.main.temp_dir)
+  tmp_dir = sbox.add_wc_path('iautoprops')
   config_dir = os.path.join(tmp_dir, 'autoprops_config_' + sbox.name)
   repos_url = sbox.repo_url
 
@@ -648,7 +646,7 @@ def svn_prop_inheritable_autoprops_add_v
   #
   # Then revert the previous additions and add again, only the
   # svn:auto-props should be applied.
-  tmp_dir = os.path.abspath(svntest.main.temp_dir)
+  tmp_dir = sbox.add_wc_path('temp')
   config_dir = os.path.join(tmp_dir,
                             'autoprops_config_disabled_' + sbox.name)
   create_inherited_autoprops_config(config_dir, False)



Mime
View raw message