[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] run_tests.py - Restrict values to --server-minor-version.

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 5 Jul 2011 08:59:55 +0300

At least this needs cross-referencing comments to svntest/main.py which
does the same check.

I don't know (and haven't looked) whether it's possible to have direct
code reuse in this case.

Noorul Islam K M wrote on Tue, Jul 05, 2011 at 10:24:44 +0530:
>
> Log
> [[[
>
> * build/run_tests.py
> (main): Restrict --server-minor-version to take values in the range
> 4-7.
>
> Patch by: Noorul Islam K M <noorul{_AT_}collab.net>
> ]]]
>
> Thanks and Regards
> Noorul
>

> Index: build/run_tests.py
> ===================================================================
> --- build/run_tests.py (revision 1142624)
> +++ build/run_tests.py (working copy)
> @@ -604,6 +604,12 @@
> logfile = os.path.abspath('tests.log')
> faillogfile = os.path.abspath('fails.log')
>
> + if server_minor_version:
> + minor_version = int(server_minor_version)
> + if minor_version < 4 or minor_version > 7:
> + sys.stderr.write("Test harness only supports server minor versions 4-7\n")
> + sys.exit(1)
> +
> th = TestHarness(args[0], args[1], logfile, faillogfile,
> base_url, fs_type, http_library, server_minor_version,
> verbose, cleanup, enable_sasl, parallel, config_file,
Received on 2011-07-05 08:00:53 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.