Skip to content

Commit 11a4bbf

Browse files
GRISHNOVDifferentialOrange
authored andcommitted
test: rework DEV environment variable naming
Change `DEV` environment variable naming to `TARANTOOL_CRUD_ENABLE_INTERNAL_CHECKS` used to enabling `checks()` in tests. This will prevent possible intersections with other environment variables due to common `DEV` naming. Closes #250
1 parent 9253f70 commit 11a4bbf

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99

1010
### Changed
1111
* Yield on select/pairs storage tuple lookup (#312).
12+
* Naming of `DEV` environment variable to `TARANTOOL_CRUD_ENABLE_INTERNAL_CHECKS` (#250).
1213

1314
### Fixed
1415
* Loaded functions misleading coverage (#249).

crud/common/dev_checks.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ local checks = require('checks')
22

33
local dev_checks = function() end
44

5-
if os.getenv('DEV') == 'ON' then
5+
if os.getenv('TARANTOOL_CRUD_ENABLE_INTERNAL_CHECKS') == 'ON' then
66
dev_checks = checks
77
end
88

test/helper.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ local fio = require('fio')
1010
local crud = require('crud')
1111
local crud_utils = require('crud.common.utils')
1212

13-
if os.getenv('DEV') == nil then
14-
os.setenv('DEV', 'ON')
13+
if os.getenv('TARANTOOL_CRUD_ENABLE_INTERNAL_CHECKS') == nil then
14+
os.setenv('TARANTOOL_CRUD_ENABLE_INTERNAL_CHECKS', 'ON')
1515
end
1616

1717
local helpers = {}
@@ -478,7 +478,7 @@ function helpers.get_map_reduces_stat(router, space_name)
478478
end
479479

480480
function helpers.disable_dev_checks()
481-
os.setenv('DEV', 'OFF')
481+
os.setenv('TARANTOOL_CRUD_ENABLE_INTERNAL_CHECKS', 'OFF')
482482
end
483483

484484
function helpers.count_on_replace_triggers(server, space_name)

0 commit comments

Comments
 (0)