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

cmdline tests and --non-interactive

From: Daniel Rall <dlr_at_collab.net>
Date: 2005-12-20 19:27:02 CET

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)
...

  • application/pgp-signature attachment: stored
Received on Tue Dec 20 20:05:54 2005

This is an archived mail posted to the Subversion Dev mailing list.