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

svntest: Redundant code for loading of dump files by the test suites

From: Daniel Rall <dlr_at_collab.net>
Date: 2007-06-08 23:43:43 CEST

On Thu, 07 Jun 2007, hwright@tigris.org wrote:
...
> +def merge_sensitive_log_single_revision(sbox):
...
> + data_dir = os.path.join(os.path.dirname(sys.argv[0]),
> + 'mergetracking_data')
> + dump_str = svntest.main.file_read(os.path.join(data_dir,
> + "basic-merge.dump"),
> + "rb")
> +
> + # Create a virgin repos and working copy
> + svntest.main.safe_rmtree(sbox.repo_dir, 1)
> + svntest.main.create_repos(sbox.repo_dir)
> +
> + # Load the mergetracking dumpfile into the repos, and check it out the repo
> + svntest.actions.run_and_verify_load(sbox.repo_dir, dump_str)
> + svntest.actions.run_and_verify_svn(None, None, [],
> + "co", sbox.repo_url, sbox.wc_dir)
...

special_tests.py and svnsync_tests.py also load dump files. The
former also performs the subsequent checkout. It would be great to
have a shared helper function in the svntest.actions or svntest.main
module to handle this redundancy.

  • application/pgp-signature attachment: stored
Received on Fri Jun 8 23:43:50 2007

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