Closed
Bug 928842
Opened 11 years ago
Closed 11 years ago
TypeError: 'GaiaResult' object does not support indexing
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(firefox27 fixed, b2g-v1.2 fixed)
RESOLVED
FIXED
mozilla27
People
(Reporter: zcampbell, Assigned: jgriffin)
References
Details
Attachments
(1 file)
3.14 KB,
patch
|
davehunt
:
review+
|
Details | Diff | Splinter Review |
On Jenkins there is a problem with the XML report:
http://qa-selenium.mv.mozilla.com:8080/view/B2G%20Hamachi/job/b2g.hamachi.mozilla-central.ui/179/console
It is blocking accurate reporting on Jenkins.
Trace is:
Traceback (most recent call last):
File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui/.env/bin/gaiatest", line 8, in <module>
load_entry_point('gaiatest==0.17', 'console_scripts', 'gaiatest')()
File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui/tests/python/gaia-ui-tests/gaiatest/runtests.py", line 352, in main
cli(runner_class=GaiaTestRunner, parser_class=GaiaTestOptions)
File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 876, in cli
runner = startTestRunner(runner_class, options, tests)
File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 868, in startTestRunner
runner.run_tests(tests)
File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui/tests/python/gaia-ui-tests/gaiatest/runtests.py", line 216, in run_tests
MarionetteTestRunner.run_tests(self, tests)
File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 520, in run_tests
f.write(self.generate_xml(self.results))
File "/var/jenkins/workspace/b2g.hamachi.mozilla-central.ui/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 676, in generate_xml
_extract_xml(tup[0], text=tup[1], result='error')
TypeError: 'GaiaResult' object does not support indexing
Comment 1•11 years ago
|
||
TPE Jenkins has the same problem:
http://release1-qa.corp.tpe1.mozilla.com:8080/view/All.B2G.Test/job/B2G.master.pvt.desktop.gaiatest/lastBuild/console
Traceback (most recent call last):
File "/var/lib/jenkins/jobs/B2G.master.pvt.desktop.gaiatest/workspace/tests/python/gaia-ui-tests/.env/bin/gaiatest", line 9, in <module>
load_entry_point('gaiatest==0.17', 'console_scripts', 'gaiatest')()
File "/var/lib/jenkins/jobs/B2G.master.pvt.desktop.gaiatest/workspace/tests/python/gaia-ui-tests/gaiatest/runtests.py", line 352, in main
cli(runner_class=GaiaTestRunner, parser_class=GaiaTestOptions)
File "/var/lib/jenkins/jobs/B2G.master.pvt.desktop.gaiatest/workspace/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 876, in cli
runner = startTestRunner(runner_class, options, tests)
File "/var/lib/jenkins/jobs/B2G.master.pvt.desktop.gaiatest/workspace/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 868, in startTestRunner
runner.run_tests(tests)
File "/var/lib/jenkins/jobs/B2G.master.pvt.desktop.gaiatest/workspace/tests/python/gaia-ui-tests/gaiatest/runtests.py", line 216, in run_tests
MarionetteTestRunner.run_tests(self, tests)
File "/var/lib/jenkins/jobs/B2G.master.pvt.desktop.gaiatest/workspace/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 520, in run_tests
f.write(self.generate_xml(self.results))
File "/var/lib/jenkins/jobs/B2G.master.pvt.desktop.gaiatest/workspace/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/marionette_client-0.6.0-py2.7.egg/marionette/runtests.py", line 676, in generate_xml
_extract_xml(tup[0], text=tup[1], result='error')
TypeError: 'GaiaResult' object does not support indexing
Comment 2•11 years ago
|
||
I suspect this is another fallout from bug 879900, would you mind taking a look at this jgriffin?
Flags: needinfo?(jgriffin)
Assignee | ||
Comment 3•11 years ago
|
||
Indeed, it is.
Assignee: nobody → jgriffin
Flags: needinfo?(jgriffin)
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #819880 -
Flags: review?(dave.hunt)
Comment 5•11 years ago
|
||
Comment on attachment 819880 [details] [diff] [review]
Fix xml-report generation,
Review of attachment 819880 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, and passes!
Attachment #819880 -
Flags: review?(dave.hunt) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Target Milestone: --- → mozilla27
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 8•11 years ago
|
||
status-b2g-v1.2:
--- → fixed
status-firefox27:
--- → fixed
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•