Closed
Bug 882461
Opened 12 years ago
Closed 12 years ago
add all of mozbase directories to sys.path instead of really reinventing importing
Categories
(Testing :: Mozbase, defect)
Testing
Mozbase
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla24
People
(Reporter: k0scist, Assigned: ahal)
References
Details
Attachments
(1 file, 1 obsolete file)
3.08 KB,
patch
|
k0scist
:
review+
|
Details | Diff | Splinter Review |
See:
* https://bugzilla.mozilla.org/show_bug.cgi?id=849900
* https://bugzilla.mozilla.org/show_bug.cgi?id=877733#c40
* https://bugzilla.mozilla.org/show_bug.cgi?id=707976
Both runxpcshell.py and automation.py.in have some, ahem,
"interesting" magical import logic:
* http://mxr.mozilla.org/mozilla-central/source/build/automation.py.in#27
* http://mxr.mozilla.org/mozilla-central/source/testing/xpcshell/runxpcshelltests.py#25
And, of course, let us not forget our mozinfo importing hack:
* http://mxr.mozilla.org/mozilla-central/source/testing/xpcshell/Makefile.in
* ...and others?
Until bug 849900 can actually be fixed, we should replace this with
something that adds all the mozbase modules to the sys.path, like :ted
suggests in https://bugzilla.mozilla.org/show_bug.cgi?id=877733#c40 :
for d in os.listdir(mozbase):
sys.path.append(os.path.join(mozbase, d))
Assignee | ||
Comment 1•12 years ago
|
||
Did a quick try push for windows:
https://tbpl.mozilla.org/?tree=Try&rev=67da8ec26bba
Assignee | ||
Updated•12 years ago
|
Attachment #762153 -
Attachment is patch: true
Attachment #762153 -
Attachment mime type: message/rfc822 → text/plain
Assignee | ||
Comment 2•12 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=ec3b4019624f
Might help to actually import the modules afterwards...
Attachment #762153 -
Attachment is obsolete: true
Attachment #762153 -
Flags: review?(jhammel)
Assignee | ||
Comment 3•12 years ago
|
||
Hmm, trychooser told me that syntax would run tests on win7.. but apparently not:
https://tbpl.mozilla.org/?tree=Try&rev=dfe3b9d8de18
Assignee | ||
Updated•12 years ago
|
Attachment #762275 -
Flags: review?(jhammel)
Reporter | ||
Comment 4•12 years ago
|
||
Comment on attachment 762275 [details] [diff] [review]
Patch 2.0 - actually import modules this time
lgtm; because this touches the infamous automation.py.in, a full try run may be prudent. Also, the mozinfo magic for xpcshell should be cleaned from the makefile, but that can be taken as a follow-up
Attachment #762275 -
Flags: review?(jhammel) → review+
Reporter | ||
Comment 5•12 years ago
|
||
pushed to try, full run: https://tbpl.mozilla.org/?tree=Try&rev=89bd79ae8344 ; perhaps overkill but there ya go.
Any objections to pushing this to m-c if this works?
Reporter | ||
Comment 6•12 years ago
|
||
On android 2.2 opt:
TEST-UNEXPECTED-FAIL | xpccheck | test test_bug608142.js is missing from test manifest /builds/slave/try-and-0000000000000000000000/build/js/xpconnect/tests/unit/xpcshell.ini!
make[6]: *** [libs-xpcshell-tests] Error 1
make[5]: *** [tools] Error 2
make[4]: *** [tools_tier_platform] Error 2
make[3]: *** [tier_platform] Error 2
make[2]: *** [default] Error 2
make[1]: *** [realbuild] Error 2
make: *** [build] Error 2
I didn't read all of https://bugzilla.mozilla.org/show_bug.cgi?id=608142 and am not sure if this is a real problem (seems unrelated to the patch, anyway). Another try run is going on https://bugzilla.mozilla.org/show_bug.cgi?id=877733 so if this recurs, then we can decide what to do (again, repeat, not related to this patch).
Again, I'll land this soon sans objections
Comment 7•12 years ago
|
||
FYI that's bug 883918, I think it's just an infra problem.
Reporter | ||
Comment 8•12 years ago
|
||
pushed to inbound: https://hg.mozilla.org/integration/mozilla-inbound/rev/bb0567fbb4cc
subsequent bug should be filed for Makefile.in cleanup
Reporter | ||
Comment 9•12 years ago
|
||
(In reply to Jeff Hammel [:jhammel] from comment #8)
<snip/>
> subsequent bug should be filed for Makefile.in cleanup
bug 884181
Comment 10•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•