"Brian W. Fitzpatrick" <fitz@red-bean.com> writes:
> =========
> Proposal:
>
> Is there any reason why we should return non-zero just for skipping a
> test? I can't see any reason why we need to error if we skip something,
> but perhaps someone here has a good reason (svn blame tells me that
> kfogel wrote the line that sets skips to non-zero).
The situation is more complex than that. The _Predicate class in
testcase.py uses the error number as an index into an array of action
strings (see _Predicate.run_text(), and see the r8649 diff).
This can be fixed, but the fix is more than just a one-line change...
-Karl
> My suggested patch is:
>
> ---------------------------------------------------------------
> Index: testcase.py
> ===================================================================
> --- testcase.py (revision 10504)
> +++ testcase.py (working copy)
> @@ -107,7 +107,7 @@
> print ex.__doc__
> sys.exit(255)
> except svntest.Skip, ex:
> - error = 2
> + error = 0
> except svntest.Failure, ex:
> error = 1
> # We captured Failure and its subclasses. We don't want to print
> ---------------------------------------------------------------
>
> Thotz?
> -Fitz
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 6 18:47:30 2004