summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2015-12-09 18:01:14 +0000
committerTodd Fiala <todd.fiala@gmail.com>2015-12-09 18:01:14 +0000
commit1f99176fe5839fef9ef3cba18da25230a224e870 (patch)
treeef36ebfba1c591e4fef9d2ed33d1818f7639d446 /lldb/packages/Python/lldbsuite
parentd2725a31eb9da5efd348f0d290ebdaccb9ceb406 (diff)
downloadbcm5719-llvm-1f99176fe5839fef9ef3cba18da25230a224e870.tar.gz
bcm5719-llvm-1f99176fe5839fef9ef3cba18da25230a224e870.zip
Turn on new test summary results by default.
llvm-svn: 255130
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py6
-rw-r--r--lldb/packages/Python/lldbsuite/test/result_formatter.py5
2 files changed, 9 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index fd812573ad0..9d1d82976d1 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -464,6 +464,12 @@ def parseOptionsAndInitTestdirs():
if args.results_formatter_options:
configuration.results_formatter_options = args.results_formatter_options
+ # Default to using the BasicResultsFormatter if no formatter is specified
+ # and we're not a test inferior.
+ if not args.inferior and configuration.results_formatter_name is None:
+ configuration.results_formatter_name = (
+ "lldbsuite.test.basic_results_formatter.BasicResultsFormatter")
+
if args.lldb_platform_name:
configuration.lldb_platform_name = args.lldb_platform_name
if args.lldb_platform_url:
diff --git a/lldb/packages/Python/lldbsuite/test/result_formatter.py b/lldb/packages/Python/lldbsuite/test/result_formatter.py
index f8369487a29..10b404add26 100644
--- a/lldb/packages/Python/lldbsuite/test/result_formatter.py
+++ b/lldb/packages/Python/lldbsuite/test/result_formatter.py
@@ -685,8 +685,9 @@ class ResultsFormatter(object):
if event_type == "terminate":
self.terminate_called = True
- elif (event_type == EventBuilder.TYPE_TEST_RESULT or
- event_type == EventBuilder.TYPE_JOB_RESULT):
+ elif event_type in [
+ EventBuilder.TYPE_TEST_RESULT,
+ EventBuilder.TYPE_JOB_RESULT]:
# Keep track of event counts per test/job result status type.
# The only job (i.e. inferior process) results that make it
# here are ones that cannot be remapped to the most recently
OpenPOWER on IntegriCloud