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

Re: [patch] Issue #601 regression tests in trans_tests.py

From: <kfogel_at_collab.net>
Date: 2005-02-16 22:14:07 CET

Philip Martin <philip@codematters.co.uk> writes:
> Madan U Sreenivasan <madan@collab.net> writes:
>
> > +#----------------------------------------------------------------------
> > +# Regression test described in issue #601.
> > +# Add the keyword property to a file, svn revert the file, see
> > +# error.
> > +def propset_revert(sbox):
> > + "propset, revert"
> > +
> > + sbox.build()
> > + wc_dir = sbox.wc_dir
> > + mu_path = os.path.join(wc_dir, 'A', 'mu')
> > +
> > + # Set the Rev keyword for the mu file
> > + svntest.actions.run_and_verify_svn(None, None, [],
> > + 'propset', 'svn:keywords', 'Rev', mu_path)
> > +
> > + # Revert the propset
> > + svntest.actions.run_and_verify_svn(None, None, [], 'revert', mu_path)
>
> As written it's a bit of a weak test, I'd prefer to see a call to
> run_and_verify_status after the propset and another one after the
> revert, that would provide a stronger guarantee that the revert is
> making a change. You could also check the revert output message.

Madan, want to write a patch against the test as committed in r13027?

(I agree with Philip's comments; I should have said the same thing
myself when I reviewed it in fact.)

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Feb 16 22:30:33 2005

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.