pybot return codes

534 views
Skip to first unread message

pr64

unread,
Nov 3, 2011, 12:31:03 PM11/3/11
to robotframework-devel
Hi,

At some point, my pybot command fails.

my pybot command line was (python list passed to subprocess.call) :
['pybot', '-v', 'SELENIUM_PORT:3033', '-v', 'SHELL_LOGIN:www-data', '-
d', './tests/logs', '(00:25:64:3c:50:85)', './centralunit/tests']

The return code was -15 and I do not know what it means.

This error occurs sometimes but not always at the same point. We're
running about 200 RF test cases with RF 2.5.6 on Linux (Python
2.6.5).

Could you tell me what this -15 error code means ? and if you have any
idea of why it happens ?

Thanks a lot!



Pekka Klärck

unread,
Nov 6, 2011, 3:06:49 PM11/6/11
to pierre...@gmail.com, robotframework-devel
2011/11/3 pr64 <pierre...@gmail.com>:

>
> At some point, my pybot command fails.
>
> my pybot command line was (python list passed to subprocess.call) :
> ['pybot', '-v', 'SELENIUM_PORT:3033', '-v', 'SHELL_LOGIN:www-data', '-
> d', './tests/logs', '(00:25:64:3c:50:85)', './centralunit/tests']
>
> The return code was -15 and I do not know what it means.

pybot return codes, when the process is not terminated, are always in
range 0-255. From the documentation of subprocess.call at
http://docs.python.org/library/subprocess.html:

"""
Popen.returncode

The child return code, set by poll() and wait() (and indirectly by
communicate()). A None value indicates that the process hasn’t
terminated yet.

A negative value -N indicates that the child was terminated by
signal N (Unix only).
"""

In other words, someone kill the execution with TERM signal.

Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org

Reply all
Reply to author
Forward
0 new messages