diff options
author | Todd Fiala <todd.fiala@gmail.com> | 2015-12-09 06:45:43 +0000 |
---|---|---|
committer | Todd Fiala <todd.fiala@gmail.com> | 2015-12-09 06:45:43 +0000 |
commit | 5183147e2d5b18447131299bb700058c9b26081f (patch) | |
tree | 55579830e87287ebe7c274a0b396c62051bf9816 /lldb/packages/Python/lldbsuite/test/dotest.py | |
parent | 0876d2d5cf8af2ae79ba3105a7691a6000289859 (diff) | |
download | bcm5719-llvm-5183147e2d5b18447131299bb700058c9b26081f.tar.gz bcm5719-llvm-5183147e2d5b18447131299bb700058c9b26081f.zip |
wire timeouts and exceptional inferior process exits through the test event system
The results formatter system is now fed timeouts and exceptional process
exits (i.e. inferior dotest.py process that exited by signal on POSIX
systems).
If a timeout or exceptional exit happens while a test method is running
on the worker queue, the timeout or exceptional exit is charged and
reported against that test method. Otherwise, if no test method was
running at the time of the timeout or exceptional exit, only the test
filename will be reported as the TIMEOUT or ERROR.
Implements:
https://llvm.org/bugs/show_bug.cgi?id=24830
https://llvm.org/bugs/show_bug.cgi?id=25703
In support of:
https://llvm.org/bugs/show_bug.cgi?id=25450
llvm-svn: 255097
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py index 59317e948ab..fd812573ad0 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest.py +++ b/lldb/packages/Python/lldbsuite/test/dotest.py @@ -568,16 +568,25 @@ def createSocketToLocalPort(port): def setupTestResults(): """Sets up test results-related objects based on arg settings.""" + # Setup the results formatter configuration. + formatter_config = result_formatter.FormatterConfig() + formatter_config.filename = configuration.results_filename + formatter_config.formatter_name = configuration.results_formatter_name + formatter_config.formatter_options = ( + configuration.results_formatter_options) + formatter_config.port = configuration.results_port # Create the results formatter. - formatter_spec = result_formatter.create_results_formatter() + formatter_spec = result_formatter.create_results_formatter( + formatter_config) if formatter_spec is not None and formatter_spec.formatter is not None: configuration.results_formatter_object = formatter_spec.formatter # Send an intialize message to the formatter. initialize_event = EventBuilder.bare_event("initialize") if isMultiprocessTestRunner(): - if configuration.test_runner_name is not None and configuration.test_runner_name == "serial": + if (configuration.test_runner_name is not None and + configuration.test_runner_name == "serial"): # Only one worker queue here. worker_count = 1 else: |