You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Branko Čibej <br...@xbc.nu> on 2008/04/02 21:45:15 UTC

Re: [PATCH] Allow testing of svn client exit codes

jeremy hinds wrote:
> I will be posting an updated patch in a separate email.  While working
> on it, I found a couple of things that I wanted to bring up:
>
> 1) In cmdline/svntest/main.py (function: run_one), there is a comment
> that says "don't trust the exitcode [from spawn_process()], will not
> be correct on Windows".  Python docs say that wait() is supported on
> Unix only, so this may be the reason.  I'll try to dig around for more
> info, but if exit codes cannot be reliably gotten on Windows, must I
> wrap a check against "main.is_posix_os()" around the exit-code
> verification?
>   

I think we should move all that code to use the subprocess module. I 
know it requires python-2.4, but frankly, I don't care if it makes the 
test suite more useful.

I know I've seen our tests report false positives because we weren't 
looking at exit codes.

-- Brane


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] Allow testing of svn client exit codes

Posted by jeremy hinds <je...@gmail.com>.
2008/4/4 David Glasser <gl...@davidglasser.net>:
> On Wed, Apr 2, 2008 at 2:45 PM, Branko Čibej <br...@xbc.nu> wrote:
>  >  I think we should move all that code to use the subprocess module. I know
>  > it requires python-2.4, but frankly, I don't care if it makes the test suite
>  > more useful.
>  >
>  >  I know I've seen our tests report false positives because we weren't
>  > looking at exit codes.
>
>  I believe we decided a while ago that we were totally fine with
>  bumping the Python requirement for the test suite.
>
>  --dave
>

Okay, I'll look into swapping out Popen3 with subprocess.Popen.
Hopefully I'll have a patch for that before too long.

Re: [PATCH] Allow testing of svn client exit codes

Posted by David Glasser <gl...@davidglasser.net>.
On Wed, Apr 2, 2008 at 2:45 PM, Branko Čibej <br...@xbc.nu> wrote:
> jeremy hinds wrote:
>
> > I will be posting an updated patch in a separate email.  While working
> > on it, I found a couple of things that I wanted to bring up:
> >
> > 1) In cmdline/svntest/main.py (function: run_one), there is a comment
> > that says "don't trust the exitcode [from spawn_process()], will not
> > be correct on Windows".  Python docs say that wait() is supported on
> > Unix only, so this may be the reason.  I'll try to dig around for more
> > info, but if exit codes cannot be reliably gotten on Windows, must I
> > wrap a check against "main.is_posix_os()" around the exit-code
> > verification?
> >
> >
>
>  I think we should move all that code to use the subprocess module. I know
> it requires python-2.4, but frankly, I don't care if it makes the test suite
> more useful.
>
>  I know I've seen our tests report false positives because we weren't
> looking at exit codes.

I believe we decided a while ago that we were totally fine with
bumping the Python requirement for the test suite.

--dave


-- 
David Glasser | glasser@davidglasser.net | http://www.davidglasser.net/