Cannot run B2G emulator/device mochitest on OS X.

NEW
Unassigned

Status

Testing
Mochitest
2 years ago
2 years ago

People

(Reporter: jolin, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
Error message:

runtestsb2g.py | Running tests: start.
waiting for system-message-listener-ready...
...done
Checking for orphan ssltunnel processes...
Checking for orphan xpcshell processes...
MochitestServer : launching [u'/Users/moz/Works/B2G-emu/b2g_sdk/b2g/xpcshell', '-g', u'/Users/moz/Works/B2G-emu/b2g_sdk/b2g', '-v', '170', '-f', u'/Users/moz/Works/B2G-emu/objdir-gecko/_tests/testing/mochitest/httpd.js', '-e', "const _PROFILE_PATH = '/var/folders/0c/hjc__10j4t58_7d4drh8vj900000gq/T/tmp2OrN0H'; const _SERVER_PORT = '8888'; const _SERVER_ADDR = '10.247.26.18'; const _TEST_PREFIX = undefined; const _DISPLAY_RESULTS = false;", '-f', '/Users/moz/Works/B2G-emu/objdir-gecko/_tests/testing/mochitest/server.js']
runtests.py | Server pid: 58188
runtests.py | Websocket server pid: 58189
runtests.py | SSL tunnel pid: 58190
TEST-UNEXPECTED-FAIL | runtests.py | Timed out while waiting for server startup.
Could not kill process, could not find pid: 58188, assuming it's already dead
Traceback (most recent call last):
  File "/Users/moz/Works/B2G-emu/objdir-gecko/_tests/testing/mochitest/runtestsb2g.py", line 187, in run_tests
    self.startServers(options, None)
  File "/Users/moz/Works/B2G-emu/objdir-gecko/_tests/testing/mochitest/runtestsb2g.py", line 341, in startServers
    MochitestBase.startServers(self, options, debuggerInfo)
  File "/Users/moz/Works/B2G-emu/objdir-gecko/_tests/testing/mochitest/runtests.py", line 832, in startServers
    self.server.ensureReady(self.SERVER_STARTUP_TIMEOUT)
  File "/Users/moz/Works/B2G-emu/objdir-gecko/_tests/testing/mochitest/runtests.py", line 437, in ensureReady
    sys.exit(1)
SystemExit: 1
0 ERROR Automation Error: Received unexpected exception while running application

Stopping web server
Stopping web socket server
Stopping ssltunnel
runtestsb2g.py | Running tests: end.
SUITE-END | took 125s
(Reporter)

Comment 1

2 years ago
After some investigation, I found that '/Users/moz/Works/B2G-emu/b2g_sdk/b2g/xpcshell -g /Users/moz/Works/B2G-emu/b2g_sdk/b2g' won't work because XRE path and utility path is not the same on OS X.
You need to log in before you can comment on or make changes to this bug.