Fix @skipUnlessPlatform and @skipIfPlatform decorators to work on classes.
authorRobert Flack <flackr@gmail.com>
Thu, 9 Apr 2015 18:07:58 +0000 (18:07 +0000)
committerRobert Flack <flackr@gmail.com>
Thu, 9 Apr 2015 18:07:58 +0000 (18:07 +0000)
commit068898cb83e545abeb708bf3ff8b372c61c336d5
treea6f720ee29741a14a4f79a9fd5ff998c1347cdb0
parent53703d0862c1454c222157e5d557b1053016e4c2
Fix @skipUnlessPlatform and @skipIfPlatform decorators to work on classes.

The decorators to skip if or unless certain platforms relied on calling
skipTest, which only worked if they were decorating individual test cases.
However for decorating entire classes it needs different behavior. This behavior
is already encapsulated in unittest2.skipIf and unittest2.skipUnless so this
modifies the platform decorators to use these unittest skip decorators.

Test Plan:
./dotest.py -t -p TestObjCMethods2.py
See skipped tests on linux, and see tests run on macosx.

Differential Revision: http://reviews.llvm.org/D8903

llvm-svn: 234514
lldb/test/dotest.py
lldb/test/lldbtest.py