testsuite: skipIfNoSBHeaders should skip when running remotely
authorFred Riss <friss@apple.com>
Tue, 5 Nov 2019 19:10:21 +0000 (11:10 -0800)
committerFred Riss <friss@apple.com>
Tue, 5 Nov 2019 20:22:59 +0000 (12:22 -0800)
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.

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

index 5d9838f..2816cb7 100644 (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"],