Closed Bug 1024958 Opened 11 years ago Closed 11 years ago

Lost connection when suspend will raise type error

Categories

(Remote Protocol :: Marionette, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1011668

People

(Reporter: pyang, Unassigned)

Details

marionette ver. : 0.7.9 on pypi Device: flame BuildID: 20140612160203 Version: 33.0a1 STR: Using OSX to trigger 1. Run any test cases for a long period. 2. Client machine started to suspend. 3. Connection Lost and no reconnecting EXPECT: Reconnect or gracefully shutdown ACTUAL: Traceback (most recent call last): File "/Users/mozilla-tpe/workspace/virenv/marionette/bin/mtbf", line 9, in <module> load_entry_point('mtbf-driver==0.1.0', 'console_scripts', 'mtbf')() File "/Users/mozilla-tpe/workspace/virenv/marionette/lib/python2.7/site-packages/mtbf_driver-0.1.0-py2.7.egg/mtbf_driver/mtbf.py", line 202, in main mtbf.start_gaiatest() File "/Users/mozilla-tpe/workspace/virenv/marionette/lib/python2.7/site-packages/mtbf_driver-0.1.0-py2.7.egg/mtbf_driver/mtbf.py", line 135, in start_gaiatest self.runner.run_tests(file_path) File "/Users/mozilla-tpe/workspace/virenv/marionette/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/runner/base.py", line 801, in run_tests self.run_test_sets() File "/Users/mozilla-tpe/workspace/virenv/marionette/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/runner/base.py", line 1012, in run_test_sets self.run_test_set(in_process_tests) File "/Users/mozilla-tpe/workspace/virenv/marionette/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/runner/base.py", line 989, in run_test_set self.run_test(test['filepath'], test['expected'], test['oop']) File "/Users/mozilla-tpe/workspace/virenv/marionette/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/runner/base.py", line 968, in run_test results = runner.run(suite) File "/Users/mozilla-tpe/workspace/virenv/marionette/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/runner/base.py", line 284, in run test(result) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/suite.py", line 70, in __call__ return self.run(*args, **kwds) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/suite.py", line 108, in run test(result) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 395, in __call__ return self.run(*args, **kwds) File "/Users/mozilla-tpe/workspace/virenv/marionette/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/marionette_test.py", line 200, in run self.cleanTest() File "/Users/mozilla-tpe/workspace/virenv/marionette/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/marionette_test.py", line 279, in cleanTest self._deleteSession() File "/Users/mozilla-tpe/workspace/virenv/marionette/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/marionette_test.py", line 291, in _deleteSession self.marionette.delete_session() File "/Users/mozilla-tpe/workspace/virenv/marionette/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/marionette.py", line 756, in delete_session response = self._send_message('deleteSession', 'ok') File "/Users/mozilla-tpe/workspace/virenv/marionette/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/decorators.py", line 35, in _ return func(*args, **kwargs) File "/Users/mozilla-tpe/workspace/virenv/marionette/lib/python2.7/site-packages/marionette_client-0.7.7-py2.7.egg/marionette/marionette.py", line 601, in _send_message response = self.client.send(message) File "/Users/mozilla-tpe/workspace/virenv/marionette/lib/python2.7/site-packages/marionette_transport-0.1-py2.7.egg/marionette_transport/transport.py", line 94, in send raise IOError("%s: %s" % (str(e)), self.connection_lost_msg) TypeError: not enough arguments for format string
Pretty much like a bucket error.
Can see from the trace there that you're using Marionette 0.7.7
Yes, so the fix for this has landed, and is released in version 0.7.8: https://bugzilla.mozilla.org/show_bug.cgi?id=1011668. Are you testing this against an older branch that is incompatible with the newer version? If it is incompatible, I can uplift the patch if you tell me the branch you're using.
I think that is because we get marionette through Gaia-ui-test. Mark as duplicated, thanks for clarifying.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.