Closed
Bug 768826
Opened 13 years ago
Closed 10 years ago
[CLI] Custom handler reports import error
Categories
(Testing Graveyard :: Mozmill, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: davehunt, Unassigned)
References
Details
When attempting to create a custom report handler and specifying it on the command line I see import errors. Despite these errors, the custom handler appears to be working.
$ mozmill -b /Applications/FirefoxNightly.app/ -t tests/functional/testPrivateBrowsing/testAboutPrivateBrowsing.js --handler reports.py:DashboardReport --report=stdout
ERROR | /Users/dhunt/workspace/mozmill-automation-gh/mozmill-automation/reports.py:5: RuntimeWarning: Parent module '/Users/dhunt/workspace/mozmill-automation-gh/mozmill-automation/reports' not found while handling absolute import
from mozmill.report import Report
TEST-START | tests/functional/testPrivateBrowsing/testAboutPrivateBrowsing.js | setupModule
...
Comment 1•13 years ago
|
||
What's the code you have used here? Would be nice if you could put up a minimized testcase. Could be fixed by bug 768820 or at least dependent on.
Depends on: 768820
Reporter | ||
Comment 2•13 years ago
|
||
I used the same code as attached to bug 768820, but when testing it appeared that any imports in the file would trigger this error.
$ mozmill -b /Applications/FirefoxNightly.app/ -t tests/functional/testPrivateBrowsing/testAboutPrivateBrowsing.js --handler handler.py:Handler
ERROR | handler.py:1: RuntimeWarning: Parent module 'handler' not found while handling absolute import
import sys
TEST-START | tests/functional/testPrivateBrowsing/testAboutPrivateBrowsing.js | setupModule
...
handler.py is simply:
import sys
class Handler(object):
pass
Comment 3•13 years ago
|
||
So I assume that this also works now?
Reporter | ||
Comment 4•13 years ago
|
||
No, what makes you assume that?
Comment 5•13 years ago
|
||
Oh wait. This is for CLI not the Mozmill class. Updating summary.
Summary: Custom handler reports import error → [CLI] Custom handler reports import error
Comment 6•10 years ago
|
||
Mozmill will reach its end of life soon. We are currently working on getting all the tests for Firefox ported to Marionette. For status updates please see bug 1080766.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Whiteboard: [mozmill-next]
Assignee | ||
Updated•9 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•