summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-11-28 12:15:19 +0000
committerPavel Labath <labath@google.com>2016-11-28 12:15:19 +0000
commit79724fc0ae09671b2e75e6b1345c1e3fe6e49d1d (patch)
tree68743d62a8c8ab6cc7ebec73a5923ede22ea52b3 /lldb/packages/Python/lldbsuite/test
parent4fd575423483378560db55ee291576d77b57c7a0 (diff)
downloadbcm5719-llvm-79724fc0ae09671b2e75e6b1345c1e3fe6e49d1d.tar.gz
bcm5719-llvm-79724fc0ae09671b2e75e6b1345c1e3fe6e49d1d.zip
skip android in @skipIfHostIncompatibleWithRemote
The current implementation of the decorator does not skip if the android target arch is the same as host arch (as in both cases the platform comes out as linux). Nonetheless android x86_64 binaries are not compatible with linux ones. Technically this should be "skip if target is android and host is *not* android", but currently nobody runs lldb test suite on an android host, so we don't even have a way of specifying that the host is android. llvm-svn: 288027
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/decorators.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py
index ad7a9042b05..86692360786 100644
--- a/lldb/packages/Python/lldbsuite/test/decorators.py
+++ b/lldb/packages/Python/lldbsuite/test/decorators.py
@@ -617,9 +617,11 @@ def skipIfHostIncompatibleWithRemote(func):
'i386') and host_arch != target_arch:
return "skipping because target %s is not compatible with host architecture %s" % (
target_arch, host_arch)
- elif target_platform != host_platform:
+ if target_platform != host_platform:
return "skipping because target is %s but host is %s" % (
target_platform, host_platform)
+ if lldbplatformutil.match_android_device(target_arch):
+ return "skipping because target is android"
return None
return skipTestIfFn(is_host_incompatible_with_remote)(func)
OpenPOWER on IntegriCloud