Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RobotRemote not completely removed at tearDown #8

Closed
tlyng opened this issue May 30, 2013 · 2 comments
Closed

RobotRemote not completely removed at tearDown #8

tlyng opened this issue May 30, 2013 · 2 comments

Comments

@tlyng
Copy link

tlyng commented May 30, 2013

I have to seperate packages that .robot tests that include:

 Library  Remote  ${PLONE_URL}/RobotRemote

Then I have a buildoutpart which looks like this:

[test]
recipe = zc.recipe.testrunner
defaults = ['--exit-with-status', '--auto-color', '--auto-progress']
eggs = ${buildout:eggs}

Where ${buildout:eggs} is the two packages. The first package run fine, but when it comes to the second this error occurs:

Traceback (most recent call last):
  File "/Users/torkel/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 366, in run_layer
    setup_layer(options, layer, setup_layers)
  File "/Users/torkel/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 628, in setup_layer
    setup_layer(options, base, setup_layers)
  File "/Users/torkel/.buildout/eggs/zope.testing-3.9.7-py2.7.egg/zope/testing/testrunner/runner.py", line 633, in setup_layer
    layer.setUp()
  File "/Users/torkel/.buildout/eggs/plone.app.robotframework-0.6.1-py2.7.egg/plone/app/robotframework/remote.py", line 73, in setUp
    portal._setObject(id_, globals()[id_]())
  File "/Users/torkel/.buildout/eggs/Zope2-2.13.19-py2.7.egg/OFS/ObjectManager.py", line 325, in _setObject
    v = self._checkId(id)
  File "/Users/torkel/.buildout/eggs/Products.CMFCore-2.2.7-py2.7.egg/Products/CMFCore/Skinnable.py", line 210, in _checkId
    return superCheckId(self, id, allow_dup)
  File "/Users/torkel/.buildout/eggs/Zope2-2.13.19-py2.7.egg/OFS/ObjectManager.py", line 116, in checkValidId
    'The id "%s" is invalid - it is already in use.' % id)
BadRequest: The id "RobotRemote" is invalid - it is already in use.

Looking at the corresponding code, it seems like it should have been removed in the tearDown method - apparently not.

@tlyng
Copy link
Author

tlyng commented May 30, 2013

I tried commiting the transaction on tearDown without any further success, the copy/pasted pdb session is available at pastebin

@tlyng
Copy link
Author

tlyng commented May 30, 2013

Sorry, non issue! I had mixed up the layers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant