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

Re: [TEST PATCH] RE: svn commit: rev 2838 - trunk/subversion/libsvn_wc

From: Kieran <kieran_at_esperi.demon.co.uk>
Date: 2002-08-01 07:03:15 CEST

On Thu, 1 Aug 2002, Kieran wrote:

> On Thu, 1 Aug 2002, Sander Striker wrote:
>
> > > From: striker@tigris.org [mailto:striker@tigris.org]
> > > Sent: 01 August 2002 04:31
> >
> > > Author: striker
> > > Date: 2002-07-31 21:30:42 -0500 (Wed, 31 Jul 2002)
> > > New Revision: 2838
> > >
>
> > All tests succeeded with that patch in place, so I think we need
> > a new test which takes this into account. I kind of was expecting
> > failures with my patch in place ;)
> >
> Enclosed is a patch to stat_tests.py which is designed to pass based
> on the presence of Sander's patch.
>
The original patch still had debugging statements:

Log message:

Sander has fixed a problem in "svn status -vN". See rev 2838
* ./subversion/tests/clients/cmdline/stat_tests.py:
  Added status_includes_versioned_directories

./subversion/tests/clients/cmdline/stat_tests.py
===================================================================
--- /home/kieran/download/subversion/trunk-bacchus/subversion/tests/clients/cmdline/stat_tests.py
+++ /home/kieran/download/subversion/trunk-bacchus/subversion/tests/clients/cmdline/stat_tests.py Thu Aug 1 06:00:31 2002
@@ -125,9 +125,30 @@
   return svntest.actions.run_and_verify_unquiet_status(wc_backup,
                                                        expected_status)

-
-
-
+# svn status -vN should include versioned directories
+def status_includes_versioned_directories(sbox):
+ "Check that 'svn status -vN' works"
+ # Bootstrap
+ if sbox.build():
+ return 1
+
+ wc_dir = sbox.wc_dir
+ was_cwd = os.getcwd ()
+
+ os.chdir (wc_dir)
+
+ stdout_lines, stderr_lines = \
+ svntest.main.run_svn (None, 'status', '-vN')
+
+ # Ok, so where does the magic number 3 come from?
+ # it's the number of files and directories in the root of the "greek
+ # repository
+ # Note that changing this repository will break this test...
+ if (len(stdout_lines) != 3):
+ os.chdir (was_cwd)
+ return 1
+ os.chdir (was_cwd)
+ return 0

 ########################################################################
 # Run the tests
@@ -137,6 +158,7 @@
 test_list = [ None,
               stat_unversioned_file_in_current_dir,
               status_update_with_nested_adds,
+ status_includes_versioned_directories,
              ]

 if __name__ == '__main__':

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 1 07:31:07 2002

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.