Fix some portability problems with the python tests for obliterate which I
commit6d80d1db71e837469a568e6efe63bfc63705c90a
authorJulian Foad <julian.foad@wandisco.com>
Fri, 11 Dec 2009 10:51:04 +0000 (11 10:51 +0000)
committerJulian Foad <julian.foad@wandisco.com>
Fri, 11 Dec 2009 10:51:04 +0000 (11 10:51 +0000)
treee7cc214a1ee885b3d6fac7727ea5993b02c923cd
parentb43ab41176e12cb765b90d098892b1d683942711
Fix some portability problems with the python tests for obliterate which I
added in r889342. Remove the "import csvn" statement, as that module may not
be available and is not needed. Ignore any error in trying to dump the BDB
repository state using an external "db_dump" program, as that program may not
be available and the purpose is only to assist with external debugging.
When creating the empty repository, use a function that deletes any previous
repository at that location, so that it does not fail if a previous test run
did not clean up.

* subversion/tests/cmdline/svntest/objects.py
  Remove the "import csvn" statement and the associated commented-out usage.

* subversion/tests/cmdline/svntest/actions.py
  (guarantee_empty_repository): New function.

* subversion/tests/cmdline/obliterate_tests.py
  (obliterate_1): Use guarantee_empty_repository() instead of trying to
    create a repository directly. If an exception is thrown when dumping the
    BDB repository state, ignore it and continue.

git-svn-id: http://svn.apache.org/repos/asf/subversion/trunk/subversion/tests/cmdline@889568 13f79535-47bb-0310-9956-ffa450edef68
svntest/actions.py
svntest/objects.py