summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorFred Riss <friss@apple.com>2019-11-05 11:10:21 -0800
committerFred Riss <friss@apple.com>2019-11-05 12:22:59 -0800
commit270fe47aae4ac0bf72251161ad3320de56055c3a (patch)
treec3ad0067303d23f3b807deda1c117442b65486d8 /lldb/packages/Python/lldbsuite
parent2ff545e76d11bc4fdd7663945d6ac343575530fe (diff)
downloadbcm5719-llvm-270fe47aae4ac0bf72251161ad3320de56055c3a.tar.gz
bcm5719-llvm-270fe47aae4ac0bf72251161ad3320de56055c3a.zip
testsuite: skipIfNoSBHeaders should skip when running remotely
The LLDB dylib/framework will not be available on the remote host, it makes no sense to try to run those tests in a remote scenario.
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test/decorators.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py
index 5d9838f2f58..2816cb7e39a 100644
--- a/lldb/packages/Python/lldbsuite/test/decorators.py
+++ b/lldb/packages/Python/lldbsuite/test/decorators.py
@@ -517,6 +517,9 @@ def skipIfRemote(func):
def skipIfNoSBHeaders(func):
"""Decorate the item to mark tests that should be skipped when LLDB is built with no SB API headers."""
def are_sb_headers_missing():
+ if lldb.remote_platform:
+ return "skip because SBHeaders tests make no sense remotely"
+
if lldbplatformutil.getHostPlatform() == 'darwin':
header = os.path.join(
os.environ["LLDB_LIB_DIR"],
OpenPOWER on IntegriCloud