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

Re: cmdline tests and --non-interactive

From: Michael Pilato <cmpilato_at_collab.net>
Date: 2005-12-20 21:02:41 CET

Not all 'svn' subcommands accept the --non-interactive flag (and
specifying it for one such subcommand results in an error).

On Tue, 2005-12-20 at 10:27 -0800, Daniel Rall wrote:
> How about adding --non-interactive to run_and_verify_svn(),
> run_svnsync(), etc. (as appropriate)?
>
> On Mon, 19 Dec 2005, rooneg@tigris.org wrote:
> ...
> > * tests/cmdline/svnsync_tests.py
> > (run_test): Make calls to svnsync and svn propdel pass usernames and
> > passwords explicitly.
> ...
> > --- trunk/subversion/tests/cmdline/svnsync_tests.py (original)
> > +++ trunk/subversion/tests/cmdline/svnsync_tests.py Mon Dec 19 16:15:49 2005
> > @@ -87,7 +87,9 @@
> >
> > # Initialize the mirror repository from the master.
> > output, errput = svntest.main.run_svnsync(
> > - "initialize", dest_sbox.repo_url, "--source-url", sbox.repo_url)
> > + "initialize", dest_sbox.repo_url, "--source-url", sbox.repo_url,
> > + "--username", svntest.main.wc_author,
> > + "--password", svntest.main.wc_passwd)
> > if output:
> > raise svntest.actions.SVNUnexpectedStdout(output)
> > if errput:
> > @@ -95,7 +97,9 @@
> >
> > # Synchronize the mirror repository with the master.
> > output, errput = svntest.main.run_svnsync(
> > - "synchronize", dest_sbox.repo_url)
> > + "synchronize", dest_sbox.repo_url,
> > + "--username", svntest.main.wc_author,
> > + "--password", svntest.main.wc_passwd)
> > if not output:
> > # should be: ['Committing rev 1\n', 'Committing rev 2\n']
> > raise svntest.actions.SVNUnexpectedStdout("Missing stdout")
> > @@ -106,9 +110,10 @@
> > # mirror repository in preparation for the comparison dump.
> > for prop_name in ("svn:sync-from-url", "svn:sync-from-uuid",
> > "svn:sync-last-merged-rev"):
> > - svntest.actions.run_and_verify_svn(None, None, [],
> > - "propdel", "--revprop", "-r", "0",
> > - prop_name, dest_sbox.repo_url)
> > + svntest.actions.run_and_verify_svn(
> > + None, None, [], "propdel", "--username", svntest.main.wc_author,
> > + "--password", svntest.main.wc_passwd, "--revprop", "-r", "0",
> > + prop_name, dest_sbox.repo_url)
> ...

-- 
C. Michael Pilato <cmpilato@collab.net> 
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on Sun Dec 25 00:44:28 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.