Closed
Bug 855709
Opened 12 years ago
Closed 12 years ago
[mach] mochitest-browser doesn't work anymore
Categories
(Testing :: Mochitest, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mikedeboer, Assigned: mbrubeck)
References
Details
(Whiteboard: [mach])
Attachments
(1 file, 2 obsolete files)
1.06 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
Steps to reproduce:
1) Update your mac to OSX 10.8.3 (this will get you kernel 12.3.0 and Python 2.7.2)
2) Update to the latest mozilla-central HEAD
3) Run ANY mochi test, for example: `./mach mochitest-browser browser/base/content/test/browser_aboutHome.js`
You will end up with the following error:
OSError: [Errno 2] No such file or directory:
'/Users/mdeboer/Projects/mozilla-central/obj-x86_64-apple-darwin12.3.0/obj-x86_64-apple-darwin12.3.0/_tests/testing/mochitest'
(notice the double occurrence of the object dir)
When I put the mach script into /usr/local/bin/ and execute it (from any directory) I get:
'ImportError: No module named automation'
I will reference two bugs that are related (I think) which both landed March 27th (yesterday).
Reporter | ||
Updated•12 years ago
|
Updated•12 years ago
|
Component: Build Config → Mochitest
Product: Core → Testing
Whiteboard: [mach]
Assignee | ||
Comment 1•12 years ago
|
||
I couldn't reproduce the error (on Linux or Windows), but here's a blind stab at fixing it. Does this fix or change things in any way?
Flags: needinfo?(mdeboer)
Comment 2•12 years ago
|
||
(In reply to Matt Brubeck (:mbrubeck) from comment #1)
> I couldn't reproduce the error (on Linux or Windows), but here's a blind
> stab at fixing it. Does this fix or change things in any way?
Unfortunately it doesn't work.
ImportError: No module named automation
Moving the changed line directly after "from automation import Automation" causes the original error.
Comment 3•12 years ago
|
||
(In reply to Matt Brubeck (:mbrubeck) from comment #1)
> I couldn't reproduce the error (on Linux or Windows), but here's a blind
> stab at fixing it. Does this fix or change things in any way?
Note, I have reproduced this on Windows.
WindowsError: [Error 3] The system cannot find the path specified: 'c:\\src\\fx-team\\obj-i686-pc-mingw32\\obj-i686-pc-mingw32\\_tests\\testing\\mochitest'
Comment 4•12 years ago
|
||
I find it interesting that everybody who has seen this appears to use config.guess for the default objdir. I bet somewhere we're resolving topobjdir from inside topobjdir and that results in double append. Should be easy enough to test...
Comment 5•12 years ago
|
||
This fixes the problem
Assignee | ||
Comment 6•12 years ago
|
||
This is equivalent to attachment 730919 [details] [diff] [review], but applies on top of bug 855563 (which has landed on inbound).
Alternately, we could make MozbuildObject.topobjdir always return an absolute path...
Assignee: nobody → mbrubeck
Attachment #730766 -
Attachment is obsolete: true
Attachment #730919 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #730921 -
Flags: review?(gps)
Comment 7•12 years ago
|
||
Comment on attachment 730921 [details] [diff] [review]
patch
Review of attachment 730921 [details] [diff] [review]:
-----------------------------------------------------------------
*sigh*. I was tempted to cancel review and say we should make topobjdir always return absolute paths. However, that is a little more risky. We can do that in a follow-up bug.
Attachment #730921 -
Flags: review?(gps) → review+
Assignee | ||
Comment 8•12 years ago
|
||
Flags: needinfo?(mdeboer)
Reporter | ||
Comment 9•12 years ago
|
||
I can confirm this working/ fixed on inbound. Let's move it to central asap!
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 10•12 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•