This is an archive of the discontinued LLVM Phabricator instance.

Fix @skipUnlessPlatform and @skipIfPlatform decorators to work on entire test classes as well.
ClosedPublic

Authored by flackr on Apr 8 2015, 12:19 PM.

Details

Summary

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 patch modifies the platform decorators to use these unittest skip decorators.

Diff Detail

Repository
rL LLVM

Event Timeline

flackr updated this revision to Diff 23434.Apr 8 2015, 12:19 PM
flackr retitled this revision from to Fix @skipUnlessPlatform and @skipIfPlatform decorators to work on entire test classes as well..
flackr updated this object.
flackr edited the test plan for this revision. (Show Details)
flackr added reviewers: dawn, ki.stfu.
flackr set the repository for this revision to rL LLVM.
flackr added a subscriber: Unknown Object (MLST).
dawn accepted this revision.Apr 8 2015, 1:37 PM
dawn edited edge metadata.

Haven't run full tests, but patch runs previously skipped tests on OSX for:

./dotest.py -v -t --executable $LLDB_EXEC ./lang/objc/foundation

which used to run only 2 tests, and now runs 31. lgtm!

This revision is now accepted and ready to land.Apr 8 2015, 1:37 PM
This revision was automatically updated to reflect the committed changes.