You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2014/12/18 16:33:15 UTC

svn commit: r1646478 - /subversion/trunk/subversion/tests/cmdline/svnrdump_tests.py

Author: julianfoad
Date: Thu Dec 18 15:33:15 2014
New Revision: 1646478

URL: http://svn.apache.org/r1646478
Log:
Fix the svnrdump tests to actually compare the result against the expected
result. Issue #4536 "Some svnrdump tests are spuriously passing".

This affected most of the tests for 'svnrdump dump'.

* subversion/tests/cmdline/svnrdump_tests.py
  (compare_repos_dumps): Take a 'bypass_prop_validation' flag.
  (run_dump_test): Pass the expected and actual output, instead of two
    copies of the expected output, to compare_repos_dumps. Pass the
    'bypass_prop_validation' flag as well.

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

Modified: subversion/trunk/subversion/tests/cmdline/svnrdump_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svnrdump_tests.py?rev=1646478&r1=1646477&r2=1646478&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svnrdump_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svnrdump_tests.py Thu Dec 18 15:33:15 2014
@@ -70,13 +70,17 @@ def build_repos(sbox):
   # Create an empty repository.
   svntest.main.create_repos(sbox.repo_dir)
 
-def compare_repos_dumps(svnrdump_sbox, svnadmin_dumpfile):
+def compare_repos_dumps(svnrdump_sbox, svnadmin_dumpfile,
+                        bypass_prop_validation=False):
   """Compare two dumpfiles, one created from SVNRDUMP_SBOX, and other given
   by SVNADMIN_DUMPFILE.  The dumpfiles do not need to match linewise, as the
   SVNADMIN_DUMPFILE contents will first be loaded into a repository and then
   re-dumped to do the match, which should generate the same dumpfile as
   dumping SVNRDUMP_SBOX."""
 
+  ### Note: The call from run_dump_test() passes the expected and actual
+  ### parameters in the opposite order to that implied by the parameter names.
+
   svnrdump_contents = svntest.actions.run_and_verify_dump(
                                                     svnrdump_sbox.repo_dir)
 
@@ -84,7 +88,8 @@ def compare_repos_dumps(svnrdump_sbox, s
   svntest.main.safe_rmtree(svnadmin_sbox.repo_dir)
   svntest.main.create_repos(svnadmin_sbox.repo_dir)
 
-  svntest.actions.run_and_verify_load(svnadmin_sbox.repo_dir, svnadmin_dumpfile)
+  svntest.actions.run_and_verify_load(svnadmin_sbox.repo_dir, svnadmin_dumpfile,
+                                      bypass_prop_validation)
 
   svnadmin_contents = svntest.actions.run_and_verify_dump(
                                                     svnadmin_sbox.repo_dir)
@@ -150,7 +155,9 @@ def run_dump_test(sbox, dumpfile_name, e
       None)
 
   else:
-    compare_repos_dumps(sbox, svnadmin_dumpfile)
+    ### Note: This call passes the expected and actual parameters in the
+    ### opposite order to that implied by the parameter names.
+    compare_repos_dumps(sbox, svnrdump_dumpfile, bypass_prop_validation)
 
 def run_load_test(sbox, dumpfile_name, expected_dumpfile_name = None,
                   expect_deltas = True):