summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/dosep.py
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2015-12-11 19:44:23 +0000
committerTodd Fiala <todd.fiala@gmail.com>2015-12-11 19:44:23 +0000
commita8fee7f981eace630fce1d29ea8aacac8a4687e3 (patch)
treec8ca426b21ecb65423027c81a9a5fac97fea2a60 /lldb/packages/Python/lldbsuite/test/dosep.py
parent60d69e2865b2dfe62f689274b6346919250b5250 (diff)
downloadbcm5719-llvm-a8fee7f981eace630fce1d29ea8aacac8a4687e3.tar.gz
bcm5719-llvm-a8fee7f981eace630fce1d29ea8aacac8a4687e3.zip
Add expected timeout support to test event architecture.
llvm-svn: 255363
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dosep.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dosep.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dosep.py b/lldb/packages/Python/lldbsuite/test/dosep.py
index 3f7b92e30fd..03524962c95 100644
--- a/lldb/packages/Python/lldbsuite/test/dosep.py
+++ b/lldb/packages/Python/lldbsuite/test/dosep.py
@@ -1128,6 +1128,7 @@ def getExpectedTimeouts(platform_name):
target = m.group(1)
expected_timeout = set()
+ expected_timeout.add("TestExpectedTimeout.py")
if target.startswith("linux"):
expected_timeout |= {
@@ -1475,6 +1476,12 @@ def main(num_threads, test_subdir, test_runner_name, results_formatter):
system_info = " ".join(platform.uname())
+ # Figure out which test files should be enabled for expected
+ # timeout
+ expected_timeout = getExpectedTimeouts(dotest_options.lldb_platform_name)
+ if results_formatter is not None:
+ results_formatter.set_expected_timeouts_by_basename(expected_timeout)
+
# Figure out which testrunner strategy we'll use.
runner_strategies_by_name = get_test_runner_strategies(num_threads)
@@ -1514,7 +1521,6 @@ def main(num_threads, test_subdir, test_runner_name, results_formatter):
os.rename(core, os.path.join(session_dir, dst))
# remove expected timeouts from failures
- expected_timeout = getExpectedTimeouts(dotest_options.lldb_platform_name)
for xtime in expected_timeout:
if xtime in timed_out:
timed_out.remove(xtime)
OpenPOWER on IntegriCloud