diff options
| author | OpportunityLiu <[email protected]> | 2019-06-18 19:50:39 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-06-18 19:50:39 +0800 |
| commit | 98d4504577b586ef2398346a0db2743081cf03a8 (patch) | |
| tree | 3aab00679f61eee14a62afb3989ed3d278bdb5a3 /tests/test_utils/test_skip.lua | |
| parent | 0c58eac269fda12b1568bc9704237a48aedbc4b3 (diff) | |
skip some tests
Diffstat (limited to 'tests/test_utils/test_skip.lua')
| -rw-r--r-- | tests/test_utils/test_skip.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_utils/test_skip.lua b/tests/test_utils/test_skip.lua new file mode 100644 index 000000000..c17f2c42c --- /dev/null +++ b/tests/test_utils/test_skip.lua @@ -0,0 +1,13 @@ +local test_skip = { _is_skipped_tag = {true} } + +function test_skip:skip(reason) + return { is_skipped = self._is_skipped_tag, reason = reason, context = self } +end + +function test_skip:is_skipped(result) + return result and result.context and result.context._is_skipped_tag == result.is_skipped +end + +function main() + return test_skip +end
\ No newline at end of file |
