Closed Bug 768826 Opened 13 years ago Closed 10 years ago

[CLI] Custom handler reports import error

Categories

(Testing Graveyard :: Mozmill, defect)

x86
macOS
defect
Not set
normal

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 ...
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
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
So I assume that this also works now?
No, what makes you assume that?
Oh wait. This is for CLI not the Mozmill class. Updating summary.
Summary: Custom handler reports import error → [CLI] Custom handler reports import error
Whiteboard: [mozmill-2.0?] → [mozmill-next]
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]
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.