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

Re: Implement support for 'make check' variants

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Fri, 24 Jun 2011 13:03:27 +0100

Daniel Shahaf <d.s_at_daniel.shahaf.name> writes:

> SERVER_MINOR_VERSION is for testing a 1.7 client with a 1.6 server.
>
> I'm after testing a 1.7 client with a 1.7 server using a 1.6 filesystme.

As discussed on IRC, SERVER_MINOR_VERSION should already cause a 1.6
filesystem to be used. However there is a bug somewhere in the option
handling that causes options.server_minor_version to be of type string
so the comparisons against integer values don't work.

The problem occurs if I run:

   make check SERVER_MINOR_VERSION=6

but if I run

   ./basic_checks.py --server-minor-version 6

the problem is not present. I can fix the problem using the patch below,
but I don't understand why it is necessary, and I don't know if other
parameters are affected.

Index: subversion/tests/cmdline/svntest/main.py
===================================================================
--- subversion/tests/cmdline/svntest/main.py (revision 1139223)
+++ subversion/tests/cmdline/svntest/main.py (working copy)
@@ -1614,6 +1614,8 @@
   else:
     parser = _create_parser()
 
+ options.server_minor_version = int(options.server_minor_version)
+
   # parse the positional arguments (test nums, names)
   for arg in test_selection:
     appended = False

-- 
Philip
Received on 2011-06-24 14:04:13 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.