avocado/__main__.py: rework module entry point
The following things were changed and for the following reasons:
1) Remove the current hack to force the program name at the module
entry point, for obvious reasons.
2) Return the exit status code, for obvious reasons.
3) Add some safety with a `__main__` check, because Sphinx will
load the avocado module in such a way that the avocado app is run
and the build fails. This is true on my system, and may be the case
on others.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
Showing
想要评论请 注册 或 登录