subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1030279 - /subversion/trunk/subversion/tests/cmdline/basic_tests.py
Date Tue, 02 Nov 2010 23:11:01 GMT
Author: rhuijben
Date: Tue Nov  2 23:11:00 2010
New Revision: 1030279

URL: http://svn.apache.org/viewvc?rev=1030279&view=rev
Log:
Add XFail test for the delete multiple urls issue reported in
http://svn.haxx.se/dev/archive-2010-11/0045.shtml

* tests/cmdline/basic_tests.py
  (delete_urls_with_spaces): New function.
  (test_list): Add delete_urls_with_spaces as XFail.

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

Modified: subversion/trunk/subversion/tests/cmdline/basic_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/basic_tests.py?rev=1030279&r1=1030278&r2=1030279&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/basic_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/basic_tests.py Tue Nov  2 23:11:00 2010
@@ -2647,6 +2647,29 @@ def basic_relocate(sbox):
   ### TODO: When testing ra_dav or ra_svn, do relocations between
   ### those and ra_local URLs.
 
+#----------------------------------------------------------------------
+
+def delete_urls_with_spaces(sbox):
+  "delete multiple targets with spaces"
+  sbox.build(create_wc = False)
+  
+  # Create three directories with a space in their name  
+  svntest.actions.run_and_verify_svn(None, None, [], 'mkdir',
+                                     sbox.repo_url + '/A spaced',
+                                     sbox.repo_url + '/B spaced',
+                                     sbox.repo_url + '/C spaced',
+                                     '-m', 'Created dirs')
+
+  # Try to delete the first                                     
+  svntest.actions.run_and_verify_svn(None, None, [], 'rm',
+                                     sbox.repo_url + '/A spaced',
+                                     '-m', 'Deleted A') 
+
+  # And then two at once
+  svntest.actions.run_and_verify_svn(None, None, [], 'rm',
+                                     sbox.repo_url + '/B spaced',
+                                     sbox.repo_url + '/C spaced',
+                                     '-m', 'Deleted B and C') 
 
 ########################################################################
 # Run the tests
@@ -2708,6 +2731,7 @@ test_list = [ None,
               delete_and_add_same_file,
               delete_child_parent_update,
               basic_relocate,
+              XFail(delete_urls_with_spaces),
              ]
 
 if __name__ == '__main__':



Mime
View raw message