Boost logo

Boost Testing :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2007-09-24 09:42:21


Nicola Musatti wrote:
> Hallo,
> I just tried running regression.py, but after executing all the tests it
> aborts with an error message:
>
> # Executing SVN command "svn --non-interactive --username=user info
> D:\boost\svn
> \trunk\boost >D:\boost\svn\trunk\svn_info.txt"
> Traceback (most recent call last):
> File "D:\boost\svn\trunk\regression.py", line 1037, in <module>
> commands[ command ]( **accept_args( args ) )
> File "D:\boost\svn\trunk\regression.py", line 831, in regression
> collect_logs( tag, runner, platform, user, comment, incremental,
> dart_server
> , proxy, [] )
> File "D:\boost\svn\trunk\regression.py", line 664, in collect_logs
> revision = re.search( 'Revision: ([0-9]*)', svn_info ).group(1)
> AttributeError: 'NoneType' object has no attribute 'group'
>
> This is due to the fact that I'm running the italian version of Windows
> XP and on my computer Subversion defaults to italian messages, which
> breaks the regexp which collects the svn revision.
>
> One way to avoid this problem is to ensure that the svn locale is set to
> C. Maybe it would be a good idea to fix this directly in regression.py .

I've made a change to regression.py that should eliminate the crash,
although it may not detect the revision for non-English versions. I
didn't change to the svnrevision command because I was concerned that
it's problems with Unicode names would come back to bite us.

I'll make a more permanent fix as soon as I know a bit more. Could you
please run these two svn commands on your working directory, and let me
know what the output is:

   svn info .
   svn info --xml .

Thanks,

--Beman


Boost-testing list run by mbergal at meta-comm.com