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,

Reply via email to