Closed
Bug 971605
Opened 12 years ago
Closed 12 years ago
Gaiatest can not restart b2g process on hamachi
Categories
(Firefox OS Graveyard :: Gaia::UI Tests, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: askeing, Assigned: askeing)
References
Details
Attachments
(1 file)
## ENV
Gaia 4c6b5142d3b716f1c4ea502eeb92d3119f2b01c6
Gecko https://hg.mozilla.org/mozilla-central/rev/802d87c77e76
BuildID 20140211160209
Version 30.0a1
ro.build.version.incremental=eng.archermind.20131114.105818
ro.build.date=Thu Nov 14 10:58:33 CST 2013
## Description
the device.is_android_build is False in current build, so gaiatest will skip the code of gaia_test.py#L876~L880.
* restart is True, device.is_android_build is False, m.instance is None
* True and None -> None
| Assignee | ||
Comment 1•12 years ago
|
||
### This build cannot restart
Gaia 4c6b5142d3b716f1c4ea502eeb92d3119f2b01c6
Gecko https://hg.mozilla.org/mozilla-central/rev/802d87c77e76
BuildID 20140211160209
Version 30.0a1
ro.build.version.incremental=eng.archermind.20131114.105818
ro.build.date=Thu Nov 14 10:58:33 CST 2013
>>> from marionette import Marionette
>>> marionette = Marionette('localhost', 2828)
>>> marionette.start_session()
{u'rotatable': True, u'takesElementScreenshot': True, u'takesScreenshot': True, u'appBuildId': u'20140211160209', u'cssSelectorsEnabled': True, u'javascriptEnabled': True, u'XULappId': u'{3c2e2abc-06d4-11e1-ac3b-374f68613e61}', u'secureSsl': False, u'platform': u'ANDROID', u'browserName': u'B2G', u'version': u'30.0a1', u'device': u'msm7627a', u'b2g': True, u'nativeEvents': False, u'platformVersion': u'30.0a1', u'platformName': u'ANDROID', u'handlesAlerts': False}
>>> marionette.session_capabilities['platformName']
u'ANDROID'
>>>
### This build can restart
Gaia 9fc36dde3a4a3c5ca200275b68ffb56b4173bec3
Gecko https://hg.mozilla.org/mozilla-central/rev/d812f80a0f1d
BuildID 20140211040200
Version 30.0a1
ro.build.version.incremental=eng.archermind.20131114.105818
ro.build.date=Thu Nov 14 10:58:33 CST 2013
>>> from marionette import Marionette
>>> marionette = Marionette('localhost', 2828)
>>> marionette.start_session()
{u'rotatable': True, u'takesElementScreenshot': True, u'takesScreenshot': True, u'appBuildId': u'20140211040200', u'cssSelectorsEnabled': True, u'javascriptEnabled': True, u'XULappId': u'{3c2e2abc-06d4-11e1-ac3b-374f68613e61}', u'secureSsl': False, u'platform': u'Android', u'browserName': u'B2G', u'version': u'30.0a1', u'device': u'msm7627a', u'b2g': True, u'nativeEvents': False, u'platformVersion': u'30.0a1', u'platformName': u'Android', u'handlesAlerts': False}
>>> marionette.session_capabilities['platformName']
u'Android'
>>>
It seems like we can fix this issue by modifying the gaia_test.py#L697.
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #8374668 -
Flags: review?(zcampbell)
Attachment #8374668 -
Flags: review?(florin.strugariu)
Comment 3•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Attachment #8374668 -
Flags: review?(zcampbell)
Attachment #8374668 -
Flags: review?(florin.strugariu)
Attachment #8374668 -
Flags: review+
| Assignee | ||
Comment 4•12 years ago
|
||
Zac found the source: Bug 964367
> let platformName = Services.appinfo.OS.toUpperCase();
Assignee: nobody → fyen
Comment 5•12 years ago
|
||
Hi, v1.3 is suffering from the same bug. Please uplift. T____T
Comment 6•12 years ago
|
||
(In reply to Walter Chen[:ypwalter][:wachen] from comment #5)
> Hi, v1.3 is suffering from the same bug. Please uplift. T____T
:jgriffin just released a new version of gaiatest to pypi so you should be ok if you pick that up.
You need to log in
before you can comment on or make changes to this bug.
Description
•