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

Re: Fix the current test suite

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2001-05-09 00:46:12 CEST

Sam TH <sam@uchicago.edu> writes:

> Attached is a minor patch to get local_tests.py to work properly. I'm
> not sure if it's the right fix, though. Ben, what do you think?

Was it broken for you? What I checked in "works for me" on Python
2.0 (FreeBSD 4.2). :)

> +import sys
...
> - exit(1)
> + sys.exit(1)

Is the "sys" module not automatically loaded in all Python
distributions? To be safe, must we always explicitly import it?
(gstein?)

> # Create a tree by scanning the working copy
> - mytree = svn_tree.build_tree_from_wc (wc_dir_name)
> + mytree = svn_tree.build_tree_from_wc (os.path.join(wc_dir_name, "greekfiles"))
> +

Ahhhh. These changes, plus the patches below, indicate to me that
you're not using the latest libsvn_client, Sam. When
guarantee_greek_repository() runs 'svn import', the "greekfiles"
directory should *not* be added to the repository's root dir anymore.
Do a make clean && make, and try again.

>
> - wc_dir = os.path.join (general_wc_dir, 'basic-status')
> + wc_dir = os.path.join (general_wc_dir, 'basic-status/greekfiles')
...
> - wc_dir = os.path.join (general_wc_dir, 'basic-commit')
> + wc_dir = os.path.join (general_wc_dir, 'basic-commit/greekfiles')

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:30 2006

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.