Closed
Bug 901293
Opened 11 years ago
Closed 11 years ago
Cannot run mochitest-browser tests because mach is searching for mozinfo.json in the wrong directory
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 901136
People
(Reporter: ialagenchev, Unassigned)
Details
(Keywords: regression)
mach appears to be searching for mozinfo.json in the wrong directory. This prevents me from running mochitests. Here is the output I get on a brand new checkout of the repository:
ialagenchev@ialagenchev:~/mozilla-central-copy/browser/devtools/webconsole/test$ ls *hsts*
browser_webconsole_bug_846918_hsts_invalid-headers.js
test-bug-846918-hsts-invalid-headers.html
test-bug-846918-hsts-invalid-headers.html^headers^
ialagenchev@ialagenchev:~/mozilla-central-copy/browser/devtools/webconsole/test$ ~/mozilla-central-copy/mach mochitest-browser *hsts*.js
Usage: Usage instructions for runtests.py.
All arguments are optional.
If --chrome is specified, chrome tests will be run instead of web content tests.
If --browser-chrome is specified, browser-chrome tests will be run instead of web content tests.
See <http://mochikit.com/doc/html/MochiKit/Logging.html> for details on the logging levels.
mach: error: Unable to file build information file (mozinfo.json) at this location: /Users/ialagenchev/mozilla-central-copy/obj-x86_64-apple-darwin12.3.0/dist/Nightly.app/Contents/MacOS/firefox/mozinfo.json
mozinfo.json is in the root of the obj dir:
ialagenchev@ialagenchev:~/mozilla-central-copy$ find . -name mozinfo.json
./obj-x86_64-apple-darwin12.3.0/mozinfo.json
Is there a work-around that I can use so that I can continue my work, while this is getting resolved?
Comment 1•11 years ago
|
||
Are you running latest mozilla-central? There have been many bugs/fixes in the past week regarding this issue.
Flags: needinfo?(alagenchev)
Reporter | ||
Comment 2•11 years ago
|
||
(In reply to Gregory Szorc [:gps] from comment #1)
> Are you running latest mozilla-central? There have been many bugs/fixes in
> the past week regarding this issue.
Yes, I just did a fresh checkout from git://github.com/mozilla/mozilla-central.git
Flags: needinfo?(alagenchev)
Comment 3•11 years ago
|
||
FWIW - I'm getting this problem on Win 7 64-bit as well. And it's reproducing with mochitest-plain as well.
Usage: Usage instructions for runtests.py.
All arguments are optional.
If --chrome is specified, chrome tests will be run instead of web content tests.
If --browser-chrome is specified, browser-chrome tests will be run instead of web content tests.
See <http://mochikit.com/doc/html/MochiKit/Logging.html> for details on the logging levels.
mach: error: Unable to file build information file (mozinfo.json) at this location: c:\Users\jsmith\Documents\mozilla-central\obj-i686-pc-mingw32\dist\bin\firefox.exe\mozinfo.json
OS: Mac OS X → All
Hardware: x86 → All
Comment 4•11 years ago
|
||
My command I ran after building a debug build was:
./mach mochitest-plain content/media/test_mediarecorder_creation.html
Also a regression - this was working a few days ago.
Keywords: regression
Comment 5•11 years ago
|
||
Looks like that error comes from:
https://mxr.mozilla.org/mozilla-central/source/testing/mochitest/mochitest_options.py#476
Comment 6•11 years ago
|
||
Looks like someone already filed this bug and has a patch.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 7•11 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #6)
> Looks like someone already filed this bug and has a patch.
>
> *** This bug has been marked as a duplicate of bug 901136 ***
Thank you.
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•