You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2015/06/18 16:48:43 UTC
svn commit: r1686239 -
/subversion/trunk/subversion/tests/cmdline/svnadmin_tests.py
Author: stefan2
Date: Thu Jun 18 14:48:43 2015
New Revision: 1686239
URL: http://svn.apache.org/r1686239
Log:
Follow-up on r1686232: Provide a test case for hotcopy from r/o repo.
* subversion/tests/cmdline/svnadmin_tests.py
(hotcopy_read_only): New test.
(test_list): Register new test.
Modified:
subversion/trunk/subversion/tests/cmdline/svnadmin_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/svnadmin_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svnadmin_tests.py?rev=1686239&r1=1686238&r2=1686239&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svnadmin_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svnadmin_tests.py Thu Jun 18 14:48:43 2015
@@ -3003,6 +3003,22 @@ def load_no_svndate_r0(sbox):
'proplist', '--revprop', '-r0',
sbox.repo_dir)
+# This is only supported for FSFS and BDB
+# The port to FSX is still pending.
+@Skip(svntest.main.is_fs_type_fsx)
+def hotcopy_read_only(sbox):
+ "'svnadmin hotcopy' a read-only source repository"
+ sbox.build()
+ svntest.main.chmod_tree(sbox.repo_dir, 0444, 0444)
+
+ backup_dir, backup_url = sbox.add_repo_path('backup')
+ exit_code, output, errput = svntest.main.run_svnadmin("hotcopy",
+ sbox.repo_dir,
+ backup_dir)
+ if errput:
+ logger.warn("Error: hotcopy failed")
+ raise svntest.Failure
+
########################################################################
# Run the tests
@@ -3059,6 +3075,7 @@ test_list = [ None,
upgrade,
load_txdelta,
load_no_svndate_r0,
+ hotcopy_read_only,
]
if __name__ == '__main__':