Comment 15 for bug 1548080

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote : Re: [Bug 1548080] Re: tox / run-tests do not run from normal distribution

I see the problem, and it is with the environment.

latest_duplicity/testing $ bzr export foo.tar.gz yields a tar.gz file of
size 368,889 -- just the testing dir
latest_duplicity $ bzr export foo.tar.gz yields a tar.gz file of size
1,037,248 -- the whole package

On Sun, Feb 28, 2016 at 6:52 AM, Kenneth Loafman <email address hidden>
wrote:

> Yes on the 'cd testing', we'd need to document that. But that's not
> really the problem.
>
> OK, so we have some answer variability here:
>
> On Ubuntu 14.04.4:
> - ./run-tests succeeds
> - testing/run-tests succeeds
>
> On Mac OS X 10.11.3:
> - ./run-tests fails
> - testing/run-tests succeeds
>
> On your system (what?):
> - ./run-tests fails
> - testing/run-tests fails
>
> The only difference I can see is that the first two tests start with py26
> and the last with py27, but if I modify run-tests to run 'tox -e py27', I
> get the same results.
>
> It has to be in the environment somewhere.
>
> Bazaar (bzr) 2.7.0dev1
> Python 2.7.6
>
> Try this:
> bzr export duplicity-0.7.06.tar.gz
> from latest_duplicity/
>
>
> On Sun, Feb 28, 2016 at 5:16 AM, Aaron Whitehouse <
> <email address hidden>> 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.)
>>
>> --
>> You received this bug notification because you are a bug assignee.
>> https://bugs.launchpad.net/bugs/1548080
>>
>> Title:
>> tox / run-tests do not run from normal distribution
>>
>> Status in Duplicity:
>> In Progress
>>
>> Bug description:
>> I just tried pulling down the latest code and did a ./run-test, but
>> received an error "IndexError: list index out of range".
>>
>> Through a binary search, I found that the error was introduced in rev
>> 1165:
>>
>> http://bazaar.launchpad.net/~duplicity-team/duplicity/0.7-series/revision/1165
>>
>> If I pull that down and do ./run-tests, I receive the following error
>> (whereas 1164 works as expected):
>> $ ./run-tests
>> GLOB sdist-make: /home/aaron/Programming/duplicity/dup_rev/setup.py
>> Traceback (most recent call last):
>> File "/usr/local/bin/tox", line 9, in <module>
>> load_entry_point('tox==1.7.2', 'console_scripts', 'tox')()
>> File
>> "/usr/local/lib/python2.7/dist-packages/tox-1.7.2-py2.7.egg/tox/_cmdline.py",
>> line 26, in main
>> retcode = Session(config).runcommand()
>> File
>> "/usr/local/lib/python2.7/dist-packages/tox-1.7.2-py2.7.egg/tox/_cmdline.py",
>> line 310, in runcommand
>> return self.subcommand_test()
>> File
>> "/usr/local/lib/python2.7/dist-packages/tox-1.7.2-py2.7.egg/tox/_cmdline.py",
>> line 442, in subcommand_test
>> sdist_path = self.sdist()
>> File
>> "/usr/local/lib/python2.7/dist-packages/tox-1.7.2-py2.7.egg/tox/_cmdline.py",
>> line 418, in sdist
>> sdist_path = self._makesdist()
>> File
>> "/usr/local/lib/python2.7/dist-packages/tox-1.7.2-py2.7.egg/tox/_cmdline.py",
>> line 334, in _makesdist
>> return self.config.distdir.listdir()[0]
>> IndexError: list index out of range
>>
>> Can other people run the tests properly, or has this been broken for
>> everyone from 1165?
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/duplicity/+bug/1548080/+subscriptions
>>
>
>