[Buildbot-commits] [Buildbot] #1860: buildbot test fail if extracted from the source archive
Buildbot
nobody at buildbot.net
Sat Mar 12 19:46:42 UTC 2011
#1860: buildbot test fail if extracted from the source archive
-----------------------+------------------------
Reporter: jollyroger | Owner:
Type: defect | Status: new
Priority: major | Milestone: undecided
Version: master | Resolution:
Keywords: |
-----------------------+------------------------
Comment (by dustin):
Well, we're seeing a few things work differently. I see the entire
contents of the migrate directory in my extracted tarball:
{{{
(sand27)dustin at euclid ~/tmp/buildbot-0.8.4-pre-239-g8b63982 $ ls
buildbot/db/migrate/
README migrate.cfg versions
}}}
If I run 'python setup.py test' from there, I get
{{{
Traceback (most recent call last):
File "setup.py", line 299, in <module>
setup(**setup_args)
File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "setup.py", line 72, in run
os.path.join('buildbot', 'test'))))
File "setup.py", line 97, in _run
run()
File "/home/dustin/code/buildbot/t/buildbot/sand27/lib/python2.7/site-
packages/twisted/scripts/trial.py", line 342, in run
suite = _getSuite(config)
File "/home/dustin/code/buildbot/t/buildbot/sand27/lib/python2.7/site-
packages/twisted/scripts/trial.py", line 300, in _getSuite
return loader.loadByNames(config['tests'], recurse)
File "/home/dustin/code/buildbot/t/buildbot/sand27/lib/python2.7/site-
packages/twisted/trial/runner.py", line 668, in loadByNames
for thing in set(things)]
File "/home/dustin/code/buildbot/t/buildbot/sand27/lib/python2.7/site-
packages/twisted/trial/runner.py", line 624, in loadAnything
return self.loadPackage(thing, recurse)
File "/home/dustin/code/buildbot/t/buildbot/sand27/lib/python2.7/site-
packages/twisted/trial/runner.py", line 579, in loadPackage
thingToAdd = self.loadModule(module)
File "/home/dustin/code/buildbot/t/buildbot/sand27/lib/python2.7/site-
packages/twisted/trial/runner.py", line 498, in loadModule
suite.addTest(self.loadClass(testClass))
File "/home/dustin/code/buildbot/t/buildbot/sand27/lib/python2.7/site-
packages/twisted/trial/runner.py", line 518, in loadClass
for name in names])
File "/home/dustin/code/buildbot/t/buildbot/sand27/lib/python2.7/site-
packages/twisted/trial/runner.py", line 539, in _makeCase
return klass(methodName)
File "/usr/lib/python2.7/test/test_multibytecodec_support.py", line 255,
in __init__
self.open_mapping_file().close() # test it to report the error early
File "/usr/lib/python2.7/test/test_multibytecodec_support.py", line 260,
in open_mapping_file
return test_support.open_urlresource(self.mapfileurl)
File "/usr/lib/python2.7/test/test_support.py", line 495, in
open_urlresource
requires('urlfetch')
File "/usr/lib/python2.7/test/test_support.py", line 223, in requires
raise ResourceDenied(msg)
test.test_support.ResourceDenied: Use of the `urlfetch' resource not
enabled
}}}
because the 'python setup.py test' does not remove 'test' from
{{{sys.argv}}}. Fixing that (and I'll commit the fix in a moment) makes
the tests pass.
So I'm guessing something is wrong with your sdist, since it is producing
a tarball without the entire migrate repository in it. Can you see if you
can figure out why that's the case?
--
Ticket URL: <http://trac.buildbot.net/ticket/1860#comment:3>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list