Closed
Bug 1109867
Opened 10 years ago
Closed 10 years ago
Error: could not find debugger None
Categories
(Testing :: Mochitest, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla37
People
(Reporter: jdm, Assigned: ankit.goyal90, Mentored)
Details
(Whiteboard: [lang=python][good first bug])
Attachments
(1 file)
3.83 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
This looks like it should be simple to fix. When I run any test using `./mach mochitest path/to/test.html` I see "Error: could not find debugger None" show up in the output. This looks like mozdebug.py is at fault: http://mxr.mozilla.org/mozilla-central/source/testing/mozbase/mozdebug/mozdebug/mozdebug.py#105
Assignee | ||
Comment 1•10 years ago
|
||
I would like to work on it.
Reporter | ||
Comment 2•10 years ago
|
||
Go ahead! Let me know if anything is unclear!
Assignee | ||
Comment 3•10 years ago
|
||
I am not getting any error. My test ran fine.
Assignee | ||
Comment 4•10 years ago
|
||
Are you using the latest Nighty build?
Reporter | ||
Comment 5•10 years ago
|
||
Yes, I just pulled the last from mozilla-central yesterday when I filed this.
>godot2:mozilla-central jdm$ ./mach mochitest dom/tests/mochitest/bugs/test_DOMWindowCreated_chromeonly.html
>From _tests: Kept 33877 existing; Added/updated 0; Removed 0 files and 0 directories.
>SUITE-START | Running 1 tests
>Error: Could not find debugger None.
>pk12util: PKCS12 IMPORT SUCCESSFUL
>MochitestServer : launching [u'/Users/jdm/src/mozilla-central/obj-x86_64-apple-darwin13.4.0/dist/bin/xpcshell', '-g', u'/Users/jdm/src/mozilla-central/obj-x86_64-apple-darwin13.4.0/dist/NightlyDebug.app/Contents/Resources', '-v', '170', '-f', u'/Users/jdm/src/mozilla-central/obj-x86_64-apple-darwin13.4.0/dist/bin/components/httpd.js', '-e', "const _PROFILE_PATH = '/var/folders/m7/9_hs2jb12kl4h0ww513v96cw0000gn/T/tmpGJtaHn.mozrunner'; const _SERVER_PORT = '8888'; const _SERVER_ADDR = '127.0.0.1'; const _TEST_PREFIX = undefined; const _DISPLAY_RESULTS = true;", '-f', '/Users/jdm/src/mozilla-central/obj-x86_64-apple-darwin13.4.0/_tests/testing/mochitest/server.js']
>runtests.py | Server pid: 692
>runtests.py | Websocket server pid: 693
>runtests.py | SSL tunnel pid: 694
>[692] WARNING: Re-registering a CID?: file /Users/jdm/src/mozilla-central/xpcom/components/nsComponentManager.cpp, line 531
>JavaScript warning: /Users/jdm/src/mozilla-central/obj-x86_64-apple-darwin13.4.0/_tests/testing/mochitest/server.js, line 14: JavaScript 1.7's let blocks are deprecated
>runtests.py | Running tests: start.
Reporter | ||
Comment 6•10 years ago
|
||
It's not an actual error that prevents anything, but it's confusing.
Assignee | ||
Comment 7•10 years ago
|
||
Okay, I am able to reproduce the error. Working on it.
Assignee | ||
Comment 8•10 years ago
|
||
Try this:
./mach mochitest --debugger=gdb dom/tests/mochitest/bugs/test_DOMWindowCreated_chromeonly.html
`debugger` is being sent as a python keyword argument by shell script. If you want, I can create a patch by setting default `debugger` value from `None` to `gdb`.
Reporter | ||
Comment 9•10 years ago
|
||
No, that's not the right solution here. It looks like some (but not all) of the callers of get_debugger_info check for debugger being None; let's make all of them do it.
Assignee | ||
Comment 10•10 years ago
|
||
Okay, there are 11 callers.
http://mxr.mozilla.org/mozilla-central/search?string=get_debugger_info%28&case=1&find=&findi=&filter=&hitlimit=&tree=mozilla-central
We can put a check in these functions before calling get_debugger_info()
Assignee | ||
Comment 11•10 years ago
|
||
Now tests are okay
Reporter | ||
Comment 12•10 years ago
|
||
Great! Could you follow the steps at https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch#Getting_the_patch_reviewed and ask :gps for a review?
Assignee | ||
Updated•10 years ago
|
Attachment #8535641 -
Flags: review?(gps)
Comment 13•10 years ago
|
||
Comment on attachment 8535641 [details] [diff] [review]
Put checks at relevant callers
Review of attachment 8535641 [details] [diff] [review]:
-----------------------------------------------------------------
This looks good to me. I'll land this momentarily. Thanks for the fix!
Attachment #8535641 -
Flags: review?(gps) → review+
Comment 14•10 years ago
|
||
Comment 15•10 years ago
|
||
Assignee: nobody → ankit.goyal90
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in
before you can comment on or make changes to this bug.
Description
•