You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2010/08/31 17:58:55 UTC
svn commit: r991225 -
/subversion/trunk/subversion/tests/cmdline/stat_tests.py
Author: philip
Date: Tue Aug 31 15:58:55 2010
New Revision: 991225
URL: http://svn.apache.org/viewvc?rev=991225&view=rev
Log:
Make stat_tests.py 6 pass for single-db. In single-db status shows
children of obstructed directories.
* subversion/tests/cmdline/stat_tests.py
(status_type_change_to_symlink): Adjust expected output.
Modified:
subversion/trunk/subversion/tests/cmdline/stat_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/stat_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/stat_tests.py?rev=991225&r1=991224&r2=991225&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/stat_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/stat_tests.py Tue Aug 31 15:58:55 2010
@@ -275,6 +275,7 @@ def status_type_change_to_symlink(sbox):
sbox.build(read_only = True)
wc_dir = sbox.wc_dir
+ single_db = svntest.main.wc_is_singledb(wc_dir)
os.chdir(wc_dir)
@@ -284,13 +285,28 @@ def status_type_change_to_symlink(sbox):
svntest.main.safe_rmtree('A/D')
os.symlink('bar', 'A/D')
- exit_code, output, err = svntest.actions.run_and_verify_svn(None, None, [],
- 'status')
- if len(output) != 2:
- raise svntest.Failure
- for line in output:
- if not re.match("~ +(iota|A/D)", line):
- raise svntest.Failure
+ if single_db:
+ expected_output = [
+ '~ A/D\n',
+ '! A/D/gamma\n',
+ '! A/D/G\n',
+ '! A/D/G/rho\n',
+ '! A/D/G/pi\n',
+ '! A/D/G/tau\n',
+ '! A/D/H\n',
+ '! A/D/H/chi\n',
+ '! A/D/H/omega\n',
+ '! A/D/H/psi\n',
+ '~ iota\n',
+ ]
+ else:
+ expected_output = [
+ '~ A/D\n',
+ '~ iota\n',
+ ]
+
+ svntest.actions.run_and_verify_svn(None, UnorderedOutput(expected_output),
+ [], 'status')
# "valid" symlinks
os.remove('iota')
@@ -298,13 +314,8 @@ def status_type_change_to_symlink(sbox):
os.symlink('A/mu', 'iota')
os.symlink('C', 'A/D')
- exit_code, output, err = svntest.actions.run_and_verify_svn(None, None, [],
- 'status')
- if len(output) != 2:
- raise svntest.Failure
- for line in output:
- if not re.match("~ +(iota|A/D)", line):
- raise svntest.Failure
+ svntest.actions.run_and_verify_svn(None, UnorderedOutput(expected_output),
+ [], 'status')
#----------------------------------------------------------------------
# Regression test for revision 3686.