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.
This commit is contained in:
Fred Riss 2019-11-05 11:10:21 -08:00
parent 2ff545e76d
commit 270fe47aae
1 changed files with 3 additions and 0 deletions

View File

@ -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"],