[LDTP-Dev] connection refused when ran ldtp/mago in cron

Nagappan Alagappan nagappan at gmail.com
Wed Jul 27 10:54:06 PDT 2011


Hi Dave,

Guess this might be due to X environment might not be available to the cron
job. You might need to use something like this[1] to over come the issue.
Additional info on this [2] project.

Thanks
Nagappan

[1] - https://launchpad.net/hudson-x11-guitest
[2] -
http://bazaar.launchpad.net/~nagappan/hudson-x11-guitest/head/view/head:/FAQ

On Tue, Jul 26, 2011 at 11:27 PM, dave.lin at oracle.com
<dave.lin at oracle.com>wrote:

>  The log file is attached.  I ran the cmd like this:
>
> export PYTHONDEBUG=x
> export PYTHONVERBOSE=x
> PYTHONPATH=. python -m trace --trace --trackcalls ./bin/mago -a
> solaris-menu
>
> Dave
>
>
> On 07/27/11 12:06 PM, dave.lin at oracle.com wrote:
>
>>
>>
>> Hi
>>
>> I got the following issue when I ran the ldtp/mago test cases in cron.
>>
>> Here is my environment:
>> OS: Solaris 11
>> LDTP ver: grab the latest code by the cmd "git clone
>> http://anongit.freedesktop.**org/git/ldtp/ldtp2.git<http://anongit.freedesktop.org/git/ldtp/ldtp2.git>
>> "
>> The machine is connected to the KVM, so it shares monitor/keyboard/mouse
>> with others.
>>
>> I set a cron job to start the test cases.
>>
>> ------------------------------**--------------------
>> === start(Tue Jul 26 20:00:21 CST 2011) ===
>> pid: 1540
>> args: /tmp/wox-a11y.pipe.1369 a11y a11y/sparc-jul262000/debug.log
>> commands will be executed using /bin/bash
>> job 1311692422.a at Tue Jul 26 23:00:22 2011
>>
>> ** (-c:1593): WARNING **: Trying to register gtype 'WnckWindowState' as
>> enum when in fact it is of type 'GFlags'
>>
>> ** (-c:1593): WARNING **: Trying to register gtype 'WnckWindowActions' as
>> enum when in fact it is of type 'GFlags'
>>
>> ** (-c:1593): WARNING **: Trying to register gtype
>> 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags'
>> Traceback (most recent call last):
>>  File "./bin/mago", line 12, in<module>
>>    from mago.cmd.main import main
>>  File "/opt/wox/testcase/mago/mago/**cmd/main.py", line 10, in<module>
>>    import ldtp
>>  File "/usr/lib/python2.6/site-**packages/ldtp/__init__.py", line 491,
>> in<module>
>>    _populateNamespace(globals())
>>  File "/usr/lib/python2.6/site-**packages/ldtp/__init__.py", line 225, 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/python2.6/site-**packages/ldtp/client.py", line 77, 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 892, in endheaders
>>    self._send_output()
>>  File "/usr/lib/python2.6/httplib.**py", line 764, in _send_output
>>    self.send(msg)
>>  File "/usr/lib/python2.6/httplib.**py", line 723, in send
>>    self.connect()
>>  File "/usr/lib/python2.6/httplib.**py", line 704, in connect
>>    self.timeout)
>>  File "/usr/lib/python2.6/socket.py"**, line 514, in create_connection
>>    raise error, msg
>> socket.error: [Errno 146] Connection refused
>> ------------------------------**--------------------
>>
>> Thanks
>> Dave
>>
>>
>
> _______________________________________________
> LDTP-dev mailing list
> LDTP-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
>
>


-- 
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/ldtp-dev/attachments/20110727/4d108202/attachment.htm>


More information about the LDTP-dev mailing list