Skip to content

Commit fca58b2

Browse files
committed
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. (cherry picked from commit 270fe47)
1 parent 49562e7 commit fca58b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/packages/Python/lldbsuite/test/decorators.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,9 @@ def is_remote():
517517
def skipIfNoSBHeaders(func):
518518
"""Decorate the item to mark tests that should be skipped when LLDB is built with no SB API headers."""
519519
def are_sb_headers_missing():
520+
if lldb.remote_platform:
521+
return "skip because SBHeaders tests make no sense remotely"
522+
520523
if lldbplatformutil.getHostPlatform() == 'darwin':
521524
header = os.path.join(
522525
os.environ["LLDB_LIB_DIR"],

0 commit comments

Comments
 (0)