Closed Bug 901012 Opened 11 years ago Closed 11 years ago

mochitest-metro-chome no longer run locally

Categories

(Firefox Build System :: General, defect)

x86_64
Windows 8
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: jimm, Unassigned)

References

Details

with the following error:

Traceback (most recent call last):
  File "_tests/testing/mochitest/runtests.py", line 25, in <module>
    from mochitest_options import MochitestOptions
  File "t:\Mozilla\MC-REL\_tests\testing\mochitest\mochitest_options.py", line 12, in <module>
    from mozprofile import DEFAULT_PORTS
ImportError: cannot import name DEFAULT_PORTS

using a simple 'pymake mochitest-metrochrome' command.


make.py[0]: Entering directory 't:\Mozilla\MC-REL'
t:\Mozilla\mc\browser\build.mk:53:0$ rm -f ./mochitest-metro-chrome.log && t:/Mozilla/MC-REL/_virtualenv/Scripts/python.exe _tests/testing/mochitest/runtests.py --autorun --close-w
hen-done --console-level=INFO --log-file=./mochitest-metro-chrome.log --file-level=INFO --failure-file=t:/Mozilla/MC-REL/_tests/testing/mochitest/makefailures.json --testing-module
s-dir=t:/Mozilla/MC-REL/_tests/modules --extra-profile-file=./dist/plugins --symbols-path=./dist/crashreporter-symbols --test-path="browser/metro/base/tests/mochitest"  --metro-imm
ersive --browser-chrome
Traceback (most recent call last):
  File "_tests/testing/mochitest/runtests.py", line 25, in <module>
    from mochitest_options import MochitestOptions
  File "t:\Mozilla\MC-REL\_tests\testing\mochitest\mochitest_options.py", line 12, in <module>
    from mozprofile import DEFAULT_PORTS
ImportError: cannot import name DEFAULT_PORTS
t:\Mozilla\mc\browser\build.mk:53:0: command 'rm -f ./mochitest-metro-chrome.log && t:/Mozilla/MC-REL/_virtualenv/Scripts/python.exe _tests/testing/mochitest/runtests.py --autorun
--close-when-done --console-level=INFO --log-file=./mochitest-metro-chrome.log --file-level=INFO --failure-file=t:/Mozilla/MC-REL/_tests/testing/mochitest/makefailures.json --testi
ng-modules-dir=t:/Mozilla/MC-REL/_tests/modules --extra-profile-file=./dist/plugins --symbols-path=./dist/crashreporter-symbols --test-path="browser/metro/base/tests/mochitest"  --
metro-immersive --browser-chrome' failed, return code 1
Possibly a regression from bug 865349.  Does "mach mochitest-metro" work for you?  It works for me.
Bug 899569 has the same failure message.
I'm not sure what caused this, but it may have been something in my local setup. I was testing talos local runs recently and had to install some moz packages to get those working. After I blew away my mozilla-build and my obj dir things are working again.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.