Skip to content

Is run-test.py itself broken? #20

Description

@futatuki

When I ran 'python2.7 ./run-test.py' I always got:

W: Couldn't find node 'transaction...' in expected output tree
W:  * Node name:   transaction...
    Path:       __SVN_ROOT_NODE/transaction...
    Contents:   None
    Properties: {}
    Attributes: {'verb': 'Committing'}
    Children:  None (node is probably a file)

W: ERROR:  output of import command is unexpected.
W: EXPECTED OUTPUT TREE:
W: ROOT
  +-- svn-test-work
        +-- local_tmp
              +-- greekfiles
                    |-- A
                    |     |-- B
                    |     |     |-- E
                    |     |     |     |-- alpha
                    |     |     |     +-- beta
                    |     |     |-- F
                    |     |     +-- lambda
                    |     |-- C
                    |     |-- D
                    |     |     |-- G
                    |     |     |     |-- pi
                    |     |     |     |-- rho
                    |     |     |     +-- tau
                    |     |     |-- H
                    |     |     |     |-- chi
                    |     |     |     |-- omega
                    |     |     |     +-- psi
                    |     |     +-- gamma
                    |     +-- mu
                    +-- iota

W: ACTUAL OUTPUT TREE:
W: ROOT
  |-- svn-test-work
  |     +-- local_tmp
  |           +-- greekfiles
  |                 |-- A
  |                 |     |-- B
  |                 |     |     |-- E
  |                 |     |     |     |-- alpha
  |                 |     |     |     +-- beta
  |                 |     |     |-- F
  |                 |     |     +-- lambda
  |                 |     |-- C
  |                 |     |-- D
  |                 |     |     |-- G
  |                 |     |     |     |-- pi
  |                 |     |     |     |-- rho
  |                 |     |     |     +-- tau
  |                 |     |     |-- H
  |                 |     |     |     |-- chi
  |                 |     |     |     |-- omega
  |                 |     |     |     +-- psi
  |                 |     |     +-- gamma
  |                 |     +-- mu
  |                 +-- iota
  +-- transaction...

on FreeBSD 13 with Subversion 1.14.1, CentOS 7 with Subversion 1.14.1 and Scientific Linux with Subversion 1.9.7.

Even after I modified run-test.py with patch below, the behaiviour is not changed.

diff --git a/run-tests.py b/run-tests.py
index 7eaee08..cf9536f 100755
--- a/run-tests.py
+++ b/run-tests.py
@@ -935,6 +935,7 @@ class Cvs2SvnPropertiesTestCase(Cvs2SvnTestCase):
 @Cvs2SvnTestFunction
 def show_usage():
   "cvs2svn with no arguments shows usage"
+  raise Failure('Dummy failure.')
   out = run_script(cvs2svn, None)
   if (len(out) > 2 and out[0].find('ERROR:') == 0
       and out[1].find('DBM module')):
@@ -4310,7 +4311,8 @@ if __name__ == '__main__':
   svntest.main.svnadmin_binary    = svnadmin_binary
   svntest.main.svnversion_binary  = svnversion_binary
 
-  svntest.main.run_tests(test_list)
+  #svntest.main.run_tests(test_list)
+  svntest.main.run_tests([None, show_usage,])
   # NOTREACHED
 
 

Are there something wrong in my usage of run-test.py? Or is run-test.py itself broken now?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions