Closed Bug 855709 Opened 11 years ago Closed 11 years ago

[mach] mochitest-browser doesn't work anymore

Categories

(Testing :: Mochitest, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mikedeboer, Assigned: mbrubeck)

References

Details

(Whiteboard: [mach])

Attachments

(1 file, 2 obsolete files)

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).
Depends on: 818819, 841713
Component: Build Config → Mochitest
Product: Core → Testing
Whiteboard: [mach]
Attached patch untested patch (obsolete) — Splinter Review
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)
(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.
(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'
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...
Attached patch fix for abspath (obsolete) — Splinter Review
This fixes the problem
Attached patch patchSplinter Review
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 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+
I can confirm this working/ fixed on inbound. Let's move it to central asap!
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: