aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/dotest.py
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2015-11-09 18:51:04 +0000
committerTodd Fiala <todd.fiala@gmail.com>2015-11-09 18:51:04 +0000
commitcee6a6a63b56c9317dd73edefa93ea35037fa2f6 (patch)
tree0a3487ae8219628534b0527e07ea9ac1c5e82ac5 /lldb/packages/Python/lldbsuite/test/dotest.py
parent18b2258c92df93c83bc7fce94c20baff3c06e2c6 (diff)
downloadllvm-cee6a6a63b56c9317dd73edefa93ea35037fa2f6.zip
llvm-cee6a6a63b56c9317dd73edefa93ea35037fa2f6.tar.gz
llvm-cee6a6a63b56c9317dd73edefa93ea35037fa2f6.tar.bz2
Add --curses shortcut for specifying the curses-based test results formatter.
This commit closes the following review: http://reviews.llvm.org/D14488 llvm-svn: 252498
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index 572bbba..8a09d29 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -22,7 +22,6 @@ from __future__ import absolute_import
from __future__ import print_function
# System modules
-import sys
import atexit
import importlib
import os
@@ -751,6 +750,11 @@ def parseOptionsAndInitTestdirs():
test_runner_name = args.test_runner_name
# Capture test results-related args.
+ if args.curses and not args.inferior:
+ # Act as if the following args were set.
+ args.results_formatter = "lldbsuite.test.curses_results.Curses"
+ args.results_file = "stdout"
+
if args.results_file:
results_filename = args.results_file