From 13c7ad9cd245fca52773ac47e53da1cb46b38320 Mon Sep 17 00:00:00 2001 From: Robert Flack Date: Mon, 30 Mar 2015 14:12:17 +0000 Subject: Replace sys.platform skips in tests with @skip decorators which check against remote platform. Adds @skipIfPlatform and @skipUnlessPlatform decorators which will skip if / unless the target platform is in the provided platform list. Test Plan: ninja check-lldb shows no regressions. When running cross platform, tests which cannot run on the target platform are skipped. Differential Revision: http://reviews.llvm.org/D8665 llvm-svn: 233547 --- lldb/test/python_api/hello_world/TestHelloWorld.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/test/python_api/hello_world') diff --git a/lldb/test/python_api/hello_world/TestHelloWorld.py b/lldb/test/python_api/hello_world/TestHelloWorld.py index cf24889260d..a94ceee486d 100644 --- a/lldb/test/python_api/hello_world/TestHelloWorld.py +++ b/lldb/test/python_api/hello_world/TestHelloWorld.py @@ -10,7 +10,7 @@ class HelloWorldTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_with_dsym_and_process_launch_api(self): @@ -34,7 +34,7 @@ class HelloWorldTestCase(TestBase): self.hello_world_python() @not_remote_testsuite_ready - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_with_dsym_and_attach_to_process_with_id_api(self): @@ -59,7 +59,7 @@ class HelloWorldTestCase(TestBase): self.hello_world_attach_with_id_api() @not_remote_testsuite_ready - @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") + @skipUnlessDarwin @python_api_test @dsym_test def test_with_dsym_and_attach_to_process_with_name_api(self): -- cgit v1.2.3