Closed
Bug 1097719
Opened 10 years ago
Closed 10 years ago
Gaia-ui-tests do not seem to run with B2G Desktop on Yosemite.
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: yzen, Unassigned)
Details
After upgrading to Yosemite it seems like gaia-ui-tests do not run anymore. STR: * Build a profile using 'make' * Download nightly B2G desktop * Go to /gaia-directory/tests/python/gaia-ui-tests * run: python setup.py develop * Run the gaia-ui test using the following command as an example: gaiatest --binary=/path/to/b2g-bin --profile=/path/to/gaia/profile --testvars=/path/to/testvars.json --restart --type=b2g ./gaiatest/tests/accessibility/system/test_a11y_utility_tray_settings.py Expected: the test runs Observed: the test times out with the following log: Traceback (most recent call last): File "/Users/yzenevich/Developer/virtualenv/GAIA_UI_TESTS/bin/gaiatest", line 9, in <module> load_entry_point('gaiatest==0.30', 'console_scripts', 'gaiatest')() File "/Volumes/firefoxos/B2G/gaia/tests/python/gaia-ui-tests/gaiatest/runtests.py", line 106, in main cli(runner_class=GaiaTestRunner, parser_class=GaiaTestOptions) File "/Users/yzenevich/Developer/virtualenv/GAIA_UI_TESTS/lib/python2.7/site-packages/marionette_client-0.8.4-py2.7.egg/marionette/runtests.py", line 35, in cli runner = startTestRunner(runner_class, options, tests) File "/Users/yzenevich/Developer/virtualenv/GAIA_UI_TESTS/lib/python2.7/site-packages/marionette_client-0.8.4-py2.7.egg/marionette/runtests.py", line 20, in startTestRunner runner.run_tests(tests) File "/Users/yzenevich/Developer/virtualenv/GAIA_UI_TESTS/lib/python2.7/site-packages/marionette_client-0.8.4-py2.7.egg/marionette/runner/base.py", line 619, in run_tests self.start_marionette() File "/Users/yzenevich/Developer/virtualenv/GAIA_UI_TESTS/lib/python2.7/site-packages/marionette_client-0.8.4-py2.7.egg/marionette/runner/base.py", line 611, in start_marionette self.marionette = Marionette(**self._build_kwargs()) File "/Users/yzenevich/Developer/virtualenv/GAIA_UI_TESTS/lib/python2.7/site-packages/marionette_client-0.8.4-py2.7.egg/marionette/marionette.py", line 519, in __init__ assert(self.wait_for_port()), "Timed out waiting for port!" AssertionError: Timed out waiting for port!
Reporter | ||
Comment 1•10 years ago
|
||
After more trials, it seems like B2G desktop with custom profile fails to start at all: Running /path/to/b2g-bin --profile=/path/to/gaia/profile fails with the following log: JavaScript warning: resource://gre/modules/Preferences.jsm, line 36: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create 1415807843287 Marionette INFO marionette enabled via build flag and pref 1415807843316 Marionette INFO marionette-server.js loaded 1415807843346 Marionette ERROR exception: NS_ERROR_SOCKET_ADDRESS_IN_USE, Component returned failure code: 0x804b0036 (NS_ERROR_SOCKET_ADDRESS_IN_USE) [nsIServerSocket.initSpecialConnection] JavaScript error: chrome://b2g/content/shell.js, line 14: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]
Component: Gaia::UI Tests → Gaia
Reporter | ||
Comment 2•10 years ago
|
||
Even after ensuring that nothing's taking up a port the log is: JavaScript warning: resource://gre/modules/Preferences.jsm, line 36: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create 1415808299496 Marionette INFO marionette enabled via build flag and pref 1415808299523 Marionette INFO marionette-server.js loaded 1415808299548 Marionette INFO Listening on port 2828 1415808299548 Marionette INFO Marionette server ready JavaScript error: chrome://b2g/content/shell.js, line 14: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]
Reporter | ||
Comment 3•10 years ago
|
||
This is what gecko.log has when running a ui test locally (and nothing else): arch: posix_spawnp: /Applications/B2G.app/Contents/MacOS/b2g-bin: Bad CPU type in executable
Reporter | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Comment 4•9 years ago
|
||
What was the resolution here? Upgrading to 10.10.3 has produced the same issue.
You need to log in
before you can comment on or make changes to this bug.
Description
•