diff options
author | Todd Fiala <todd.fiala@gmail.com> | 2015-12-11 19:44:23 +0000 |
---|---|---|
committer | Todd Fiala <todd.fiala@gmail.com> | 2015-12-11 19:44:23 +0000 |
commit | a8fee7f981eace630fce1d29ea8aacac8a4687e3 (patch) | |
tree | c8ca426b21ecb65423027c81a9a5fac97fea2a60 /lldb/packages/Python/lldbsuite/test/dosep.py | |
parent | 60d69e2865b2dfe62f689274b6346919250b5250 (diff) | |
download | bcm5719-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.py | 8 |
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) |