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

Re: --invoke-diff-cmd test suite woes

From: Ben Reser <ben_at_reser.org>
Date: Wed, 8 May 2013 10:53:48 -0700

On Wed, May 8, 2013 at 10:08 AM, Gabriela Gibson
<gabriela.gibson_at_gmail.com> wrote:
> All my manual tests for the current --invoke-diff-cmd work fine, but I
> cannot get the test suite to work.

1) You're not providing a path for the diff command are you sure that
it's on the PATH in the environment that svn is running the command
with?

2) You probably don't want to write your test using the system
provided diff command. There are platforms such as Windows that
provide no diff command by default. Even if the platform provides a
diff command the output may not match your expected output.

You probably want to write out a python script of some sort to act as
your diff command. The python script doesn't even have to actually
produce a diff, it just needs to verify that the command is run with
the expected arguments and that SVN passes the output back through to
the user. So in this case I'd make a tiny python script that just
prints out the command line arguments and the test suite can look for
that output.
Received on 2013-05-08 19:54:26 CEST

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.