提交 c1b7a5d5 编写于 作者: R Rudá Moura 提交者: Ruda Moura

avocado.cli.app: Catch all libc runtime errors to STDERR.

Fix bug #79.
Fix by setting environment variable LIBC_FATAL_STDERR_ to 1
to force all libc errors to be redirected to STDERR.
Signed-off-by: NRuda Moura <rmoura@redhat.com>
上级 1d4ea5a8
......@@ -16,6 +16,8 @@
The core Avocado application.
"""
import os
from argparse import ArgumentParser
from avocado.plugins.manager import get_plugin_manager
......@@ -29,6 +31,8 @@ class AvocadoApp(object):
"""
def __init__(self, external_plugins=None):
# Catch all libc runtime errors to STDERR
os.environ['LIBC_FATAL_STDERR_'] = '1'
self.external_plugins = external_plugins
self.plugin_manager = None
self.app_parser = ArgumentParser(prog='avocado',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册