cmpilato@collab.net writes:
> Vladimir Prus <ghost@cs.msu.su> writes:
>
> > A question:
> > In the test code above, I have to explicitly change directory to
> > working copy. Otherwise, all commits/updates fill happen in
> > subversion tree. However, other tests in update_tests.py don't do
> > that? What am I missing?
>
> Most other tests, when building paths to operate on, use:
>
> os.path.join (wc_dir, 'A', 'D', 'G', 'rho')
>
> instead of what you did:
>
> os.path.join ('A', 'D', 'G', 'rho')
>
Also, a side comment: you're running 'commit' and other subcommands
directly via the run_svn() routine. This is legitimate, but it
doesn't provide as much coverage as most of the other tests. The
other tests use a different API: run_and_verify_FOO(), where foo is
one of {commit, update, status}.
Admittedly, this is a harder API to use -- but it's a lot more
thorough. It scans the contents of the working copy, it parses the
output of the subcommand, and it parses of the output of 'svn st -v'
after the subcommand is finished. For people who have been mystified
about writing tests this way, read the huge doc comment at the top of
subversion/tests/clients/cmdline/svntest/tree.py.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:07 2006