aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-08-28 22:47:54 +0200
committerGitHub <noreply@github.com>2019-08-28 22:47:54 +0200
commit6cc76194b2d67d6160a72f017a37b9d3a6b7dd3c (patch)
tree537bc9d4b64dce8854cc0327089b8e62ed5d17d0 /test/functional/helpers.lua
parent1d59575450e0a09d710a7cad2b8e1b5c5e0242f5 (diff)
downloadrneovim-6cc76194b2d67d6160a72f017a37b9d3a6b7dd3c.tar.gz
rneovim-6cc76194b2d67d6160a72f017a37b9d3a6b7dd3c.tar.bz2
rneovim-6cc76194b2d67d6160a72f017a37b9d3a6b7dd3c.zip
tests: use runtime from build for doc/tags with :help (#10479)
This is better practice in general, and allows to remove the "helptags ALL" hacks. Ref: https://github.com/neovim/neovim/issues/8824 Ref: https://github.com/neovim/neovim/commit/f1b67c3453c * Makefile: fix dependencies with regard to helptags - use the file as the main target to avoid unnecessary triggering - use "make oldtest" on Travis to ensure it gets built
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index d040ff5f8c..2f76f24d84 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -800,6 +800,11 @@ function module.parse_context(ctx)
end, parsed)
end
+function module.add_builddir_to_rtp()
+ -- Add runtime from build dir for doc/tags (used with :help).
+ module.command(string.format([[set rtp+=%s/runtime]], module.test_build_dir))
+end
+
module = global_helpers.tbl_extend('error', module, global_helpers)
return function(after_each)