Index: lldb/packages/Python/lldbsuite/test/decorators.py =================================================================== --- lldb/packages/Python/lldbsuite/test/decorators.py +++ lldb/packages/Python/lldbsuite/test/decorators.py @@ -596,18 +596,13 @@ """Decorate the item to skip tests that should be skipped on Windows.""" return skipIfPlatform(["windows"])(func) -def skipIfTargetAndroid(func): - return unittest2.skipIf(lldbplatformutil.target_is_android(), - "skip on target Android")(func) - - def skipUnlessWindows(func): """Decorate the item to skip tests that should be skipped on any non-Windows platform.""" return skipUnlessPlatform(["windows"])(func) def skipUnlessDarwin(func): """Decorate the item to skip tests that should be skipped on any non Darwin platform.""" return skipUnlessPlatform(lldbplatformutil.getDarwinOSTriples())(func) def skipUnlessTargetAndroid(func): @@ -652,9 +647,9 @@ "requires one of %s" % (", ".join(oslist))) -def skipIfTargetAndroid(api_levels=None, archs=None): +def skipIfTargetAndroid(bugnumber=None, api_levels=None, archs=None): """Decorator to skip tests when the target is Android. Arguments: api_levels - The API levels for which the test should be skipped. If it is None, then the test will be skipped for all API levels. @@ -665,8 +660,9 @@ _skip_for_android( "skipping for android", api_levels, - archs)) + archs), + bugnumber) def skipUnlessSupportedTypeAttribute(attr): """Decorate the item to skip test unless Clang supports type __attribute__(attr).""" def compiler_doesnt_support_struct_attribute(self):