[gnome-desktop-testing] Running LDTP scripts from Hudson



Hello all!

I am trying to set up Hudson [1] to run Mago tests and I 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.

Someone understanding python-twisted knows what's happening?

Thanks!
Ara.

[1] https://hudson.dev.java.net/
[2]
https://wiki.ubuntu.com/FoundationsTeam/Specs/SharingTestingInfrastructure#Mago%20Tests
Started by user anonymous
[workspace] $ /bin/sh -xe /tmp/hudson8120242894168632865.sh
+ 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/__init__.py:57: 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/__init__.py", line 51, in main
    pyatspi.setCacheLevel(pyatspi.CACHE_PROPERTIES)
  File "/usr/lib/python2.6/dist-packages/pyatspi/accessible.py", line 91, in setCacheLevel
    r.registerEventListener(_updateCache, *constants.CACHE_EVENTS)
  File "/usr/lib/python2.6/dist-packages/pyatspi/registry.py", 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/main.py", line 10, in <module>
    import ldtp
  File "/usr/lib/pymodules/python2.6/ldtp/__init__.py", line 257, in <module>
    _populateNamespace(globals())
  File "/usr/lib/pymodules/python2.6/ldtp/__init__.py", line 60, in _populateNamespace
    for method in client._client.system.listMethods():
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/pymodules/python2.6/ldtp/client.py", line 76, in request
    self, host, handler, request_body, verbose=0)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1235, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1349, in send_content
    connection.endheaders()
  File "/usr/lib/python2.6/httplib.py", line 904, in endheaders
    self._send_output()
  File "/usr/lib/python2.6/httplib.py", line 776, in _send_output
    self.send(msg)
  File "/usr/lib/python2.6/httplib.py", line 735, in send
    self.connect()
  File "/usr/lib/python2.6/httplib.py", line 716, in connect
    self.timeout)
  File "/usr/lib/python2.6/socket.py", 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]