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

[PATCH] Fix log_tests.py empty repos test

From: William Uther <will+_at_cs.cmu.edu>
Date: 2002-08-12 06:41:46 CEST

Hi,
   I recently posted some patches to the test suite. They reveal a bug
in the log tests. This patch fixes that bug.

later,

\x/ill :-}

    * log_tests.py
      (log_with_empty_repos): Clean out the old repos before making a new
one.

Index: ./subversion/tests/clients/cmdline/log_tests.py
===================================================================
--- ./subversion/tests/clients/cmdline/log_tests.py
+++ ./subversion/tests/clients/cmdline/log_tests.py Mon Aug 12
00:37:22 2002
@@ -17,7 +17,7 @@
  ######################################################################

  # General modules
-import string, sys, re, os
+import string, sys, re, os, shutil

  # Our testing module
  import svntest
@@ -397,6 +397,8 @@
    "Test 'svn log' on an empty repository"

    # Create virgin repos
+ if os.path.exists(sbox.repo_dir):
+ shutil.rmtree(sbox.repo_dir)
    svntest.main.create_repos(sbox.repo_dir)

    stdout_lines, stderr_lines = svntest.main.run_svn\

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Aug 12 06:42:55 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.