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 2017/12/23 13:24:19 UTC
svn commit: r1819146 -
/subversion/trunk/subversion/tests/cmdline/svntest/main.py
Author: stefan2
Date: Sat Dec 23 13:24:19 2017
New Revision: 1819146
URL: http://svn.apache.org/viewvc?rev=1819146&view=rev
Log:
Follow up on r1818577: Make tests pass without GLOBAL_SCHEDULER.
run_tests.py must run the test sub-suites with the original parameter set
instead of the tweaked one. Hence, tweak the parameters only immediately
before exectuting the tests.
* subversion/tests/cmdline/svntest/main.py
(parse_options): Factor out the server version tweaks ...
(tweak_options_for_precooked_repos): ... into this function.
(execute_tests): Update caller.
Modified:
subversion/trunk/subversion/tests/cmdline/svntest/main.py
Modified: subversion/trunk/subversion/tests/cmdline/svntest/main.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/main.py?rev=1819146&r1=1819145&r2=1819146&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/main.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/main.py Sat Dec 23 13:24:19 2017
@@ -2236,8 +2236,16 @@ def parse_options(arglist=sys.argv[1:],
parser.error("test harness only supports server minor versions 3-%d"
% SVN_VER_MINOR)
- # Make sure the server-minor-version matches the fsfs-version parameter.
- #
+ pass
+
+ return (parser, args)
+
+def tweak_options_for_precooked_repos():
+ """Make sure the server-minor-version matches the fsfs-version parameter
+ for pre-cooked repositories."""
+
+ global options
+
# Server versions that introduced the respective FSFS formats:
introducing_version = { 1:1, 2:4, 3:5, 4:6, 6:8, 7:9 }
if options.fsfs_version:
@@ -2249,12 +2257,8 @@ def parse_options(arglist=sys.argv[1:],
parser.error("--fsfs-version=%d requires --server-minor-version=%d" \
% (options.fsfs_version, introduced_in))
options.server_minor_version = introduced_in
- pass
# ### Add more tweaks here if and when we support pre-cooked versions
# ### of FSFS repositories.
- pass
-
- return (parser, args)
def run_tests(test_list, serial_only = False):
@@ -2350,6 +2354,7 @@ def execute_tests(test_list, serial_only
if not options:
# Override which tests to run from the commandline
(parser, args) = parse_options()
+ tweak_options_for_precooked_repos()
test_selection = args
else:
parser = _create_parser()