Skip to content

Commit 42d4e24

Browse files
nshyylobankov
authored andcommitted
Add luatest.tarantool.skip_if_not_enterprise
It helps to skip the test if package is not EE. Part of tarantool/tarantool#7718
1 parent 1ed52a2 commit 42d4e24

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
- Add new module `tarantool.lua`.
4646
- Auto-require `luatest` module in `Server:exec()` function where it is available
4747
via the corresponding upvalue.
48+
- Add new function `tarantool.skip_if_not_enterprise`.
4849

4950
## 0.5.7
5051

luatest/tarantool.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ function M.skip_if_enterprise(message)
3737
)
3838
end
3939

40+
--- Skip a running test if Tarantool package is NOT Enterprise.
41+
--
42+
-- @string[opt] message Message to describe the reason.
43+
function M.skip_if_not_enterprise(message)
44+
assertions.skip_if(
45+
not M.is_enterprise_package(), message or 'package is not Enterprise'
46+
)
47+
end
48+
4049
--- Search for a fiber with the specified name and return the fiber object.
4150
--
4251
-- @string name Fiber name.

0 commit comments

Comments
 (0)