sonos - Self-test fails with python error 'global name 'parser' is not defined' -
im running self-test , in doing getting several failures instance message: "global name 'parser' not defined"
i have packages installed python (using version 2.7 on ubuntu ) , tests updatetestcontent part of suite fails.
does have suggestions on how fix error?
an example of output is: (but im getting exact same error 30 times on updatetestcontent tests)
stopped updatetestcontent test_combinatorial_get_test_content_173616823212099076936397683973588533375 (mediacollection){ id = "top" itemtype = "container" displaytype = "list" title = "hitsnl top30" canplay = true canenumerate = true albumarturi = "https://external.unplug.de/img/hitsnl_top_30.png" }
instance messages:
global name 'parser' not defined
2016-06-27 16:42:08,503 [info] sonos.sonos.workflow.fixture.updatetestcontent - test case: 1 updatetestcontent test_combinatorial_get_test_content_173616823212099076936397683973588533375
(mediacollection){ id = "top" itemtype = "container" displaytype = "list" title = "hitsnl top30" canplay = true canenumerate = true albumarturi = "https://external.unplug.de/img/hitsnl_top_30.png" })
2016-06-27 16:42:08,503 [pass] sonos.sonos.workflow.fixture.updatetestcontent - no test content needs updating. (expression true)
2016-06-27 16:42:08,503 [stop] sonos.sonos.workflow.fixture.updatetestcontent - global name 'parser' not defined
2016-06-27 16:42:08,503 [stop] sonos.sonos.workflow.fixture.updatetestcontent - 1 updatetestcontent test_combinatorial_get_test_content_173616823212099076936397683973588533375
2016-06-27 16:42:08,504 [debug] sonos.sonos.workflow.fixture.updatetestcontent - [('../../sonos-1.1.0.dev_r248336-py2.7.egg/sonos/workflow/fixture.py', 2483, '_run_test_iteration', 'testmethod(factorytestvalues)'), ('/home/zazell/applications/sonos/smapi/content_workflow/updatetestcontent.py', 90, 'test_combinatorial_get_test_content', 'self.smapiservice.init(self.smapiservice.configfile, parser.wsdl, crawler_disable)')]
2016-06-27 16:42:08,504 [info] sonos.sonos.workflow.fixture.updatetestcontent - - - - - - - - - - - - - - - - - - - - - - - - - -
2016-06-27 16:42:08,505 [info] sonos.sonos.workflow.result - end test iteration 0 of test case test_combinatorial_get_test_content @ monday, june 27, 2016 04:42 pm
i managed resolve issue adding global parser parser = serviceconfigoptionparser(sys.argv)
init method of updatetestcontent class makes run properly.
Comments
Post a Comment