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