Comment 13 for bug 1548080

Revision history for this message
Aaron Whitehouse (aaron-whitehouse) wrote :

That didn't work for me:

$ bzr branch lp:duplicity latest_duplicity
Branched 1194 revisions.
$ cd latest_duplicity/
$ testing/run-tests
GLOB sdist-make: /[...]/latest_duplicity/setup.py
Traceback (most recent call last):
  File "/usr/local/bin/tox", line 11, in <module>
    sys.exit(cmdline())
  File "/usr/local/lib/python2.7/dist-packages/tox/session.py", line 39, in main
    retcode = Session(config).runcommand()
  File "/usr/local/lib/python2.7/dist-packages/tox/session.py", line 375, in runcommand
    return self.subcommand_test()
  File "/usr/local/lib/python2.7/dist-packages/tox/session.py", line 520, in subcommand_test
    path = self.get_installpkg_path()
  File "/usr/local/lib/python2.7/dist-packages/tox/session.py", line 496, in get_installpkg_path
    path = self._makesdist()
  File "/usr/local/lib/python2.7/dist-packages/tox/session.py", line 399, in _makesdist
    return self.config.distdir.listdir()[0]
IndexError: list index out of range

Again, patching makedist with my diff above means that running from the repo root with "testing/run-tests" runs the tests as expected.

(Also, if we are changing which directory one needs to execute run-tests from, we need to change README-REPO, as that specifically says one needs to change into the testing directory.)