diff options
author | ZyX <kp-pav@yandex.ru> | 2016-11-05 00:01:25 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-11 23:23:30 +0300 |
commit | 5898b42d82a5a4b594879f30d84611c98ce6bd54 (patch) | |
tree | 03f6b3661b8ce0c312071febc2c09e5fd999632e | |
parent | 29ed5b3a39abb84d6af602b2d0a7680d9dab381c (diff) | |
download | rneovim-5898b42d82a5a4b594879f30d84611c98ce6bd54.tar.gz rneovim-5898b42d82a5a4b594879f30d84611c98ce6bd54.tar.bz2 rneovim-5898b42d82a5a4b594879f30d84611c98ce6bd54.zip |
unittests: Do not run failing test at all
-rw-r--r-- | test/unit/helpers.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/helpers.lua b/test/unit/helpers.lua index fbcbda7d58..9d200a8721 100644 --- a/test/unit/helpers.lua +++ b/test/unit/helpers.lua @@ -378,6 +378,10 @@ local function gen_itp(it) 'assertion.just_fail.positive', 'assertion.just_fail.negative') local function itp(name, func, allow_failure) + if allow_failure and os.getenv('NVIM_TEST_RUN_FAILING_TESTS') ~= '1' then + -- FIXME Fix tests with this true + return + end it(name, function() local rd, wr = sc.pipe() local pid = sc.fork() |