diff options
author | Todd Fiala <todd.fiala@gmail.com> | 2016-01-22 20:20:48 +0000 |
---|---|---|
committer | Todd Fiala <todd.fiala@gmail.com> | 2016-01-22 20:20:48 +0000 |
commit | f8f8a6de06a87b7d9137a3183cc6eba6b175033d (patch) | |
tree | b832b90d37b6dbf777e09a666a89009e4b38c118 /lldb/packages/Python/lldbsuite | |
parent | 8e491e2d0258ba01cd5356cdc5a41af09b51bfe1 (diff) | |
download | bcm5719-llvm-f8f8a6de06a87b7d9137a3183cc6eba6b175033d.tar.gz bcm5719-llvm-f8f8a6de06a87b7d9137a3183cc6eba6b175033d.zip |
fixed test suite crash when --platform-name doesn't start with 'remote-'
Also removes Darwin test case files from the expectedTimeout hard-coded
file list.
See:
http://reviews.llvm.org/D16423
llvm-svn: 258542
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dosep.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dosep.py b/lldb/packages/Python/lldbsuite/test/dosep.py index 9b1b8a774f4..3ebb3aef963 100644 --- a/lldb/packages/Python/lldbsuite/test/dosep.py +++ b/lldb/packages/Python/lldbsuite/test/dosep.py @@ -1135,12 +1135,17 @@ def walk_and_invoke(test_files, dotest_argv, num_workers, test_runner_func): def getExpectedTimeouts(platform_name): # returns a set of test filenames that might timeout # are we running against a remote target? - host = sys.platform + + # Figure out the target system for which we're collecting + # the set of expected timeout test filenames. if platform_name is None: target = sys.platform else: m = re.search(r'remote-(\w+)', platform_name) - target = m.group(1) + if m is not None: + target = m.group(1) + else: + target = platform_name expected_timeout = set() @@ -1151,13 +1156,6 @@ def getExpectedTimeouts(platform_name): "TestValueObjectRecursion.py", "TestWatchpointConditionAPI.py", } - elif target.startswith("darwin"): - expected_timeout |= { - # times out on MBP Retina, Mid 2012 - "TestThreadSpecificBreakpoint.py", - "TestExitDuringStep.py", - "TestIntegerTypesExpr.py", - } return expected_timeout |