Running LDTP scripts from Hudson

Hello all!

I am trying to set up Hudson [1] to run Mago tests and I am having a
small problem that I hope someone will know how to solve.

I have set up a job to run Mago gedit tests. You can have a look on how
to do it in the wiki [2].

Once I click on run I always get a connection error when importing ldtp.
You can have a look to the error in the attached file.

But, if I open the python interpreter and manually import ldtp, then,
after that, the Hudson job will work correctly for that session.



Started by user anonymous
[workspace] $ /bin/sh -xe /tmp/
+ rm -rf mago
+ bzr branch lp:mago
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
Branched 125 revision(s).
+ cd mago
+ PYTHONPATH=. ./bin/mago --noa11y --target=/var/lib/hudson/userContent/mago -a gedit
No protocol specified
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/ GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)

** (-c:6639): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'

** (-c:6639): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags'

** (-c:6639): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/ldtpd/", line 51, in main
  File "/usr/lib/python2.6/dist-packages/pyatspi/", line 91, in setCacheLevel
    r.registerEventListener(_updateCache, *constants.CACHE_EVENTS)
  File "/usr/lib/python2.6/dist-packages/pyatspi/", line 331, in __getattribute__
    raise RuntimeError('Could not find or activate registry')
RuntimeError: Could not find or activate registry
Traceback (most recent call last):
  File "./bin/mago", line 7, in <module>
    from mago.cmd.main import main
  File "/var/lib/hudson/jobs/gedit_mago_tests/workspace/mago/mago/cmd/", line 10, in <module>
    import ldtp
  File "/usr/lib/pymodules/python2.6/ldtp/", line 257, in <module>
  File "/usr/lib/pymodules/python2.6/ldtp/", line 60, in _populateNamespace
    for method in client._client.system.listMethods():
  File "/usr/lib/python2.6/", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/", line 1489, in __request
  File "/usr/lib/pymodules/python2.6/ldtp/", line 76, in request
    self, host, handler, request_body, verbose=0)
  File "/usr/lib/python2.6/", line 1235, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.6/", line 1349, in send_content
  File "/usr/lib/python2.6/", line 904, in endheaders
  File "/usr/lib/python2.6/", line 776, in _send_output
  File "/usr/lib/python2.6/", line 735, in send
  File "/usr/lib/python2.6/", line 716, in connect
  File "/usr/lib/python2.6/", line 514, in create_connection
    raise error, msg
socket.error: [Errno 111] Connection refused
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /var/lib/hudson/userContent/mago/gedit to /var/lib/hudson/jobs/gedit_mago_tests/builds/2010-06-09_10-25-27/htmlreports/Mago_Report
Finished: FAILURE

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]