aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias EngdegÄrd2024-02-26 18:42:44 +0100
committerMattias EngdegÄrd2024-02-26 18:47:02 +0100
commita67b8d7f448804d34bce85d2b6ab8d022f14161f (patch)
tree0444f2e076f72bdde5615411d864141c58870079
parent25cfccfb8b5bced05d5547f3eabb4d0508a575c8 (diff)
downloademacs-a67b8d7f448804d34bce85d2b6ab8d022f14161f.tar.gz
emacs-a67b8d7f448804d34bce85d2b6ab8d022f14161f.zip
Make tree-sitter tests work installed in .emacs.d/tree-sitter
* test/Makefile.in (ert_opts): Set treesit-extra-load-path, because HOME is not valid when running tests from the Makefile (bug#69405).
-rw-r--r--test/Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index 720f5c7ff8c..3cbdbec4414 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -92,6 +92,10 @@ export TEST_LOAD_EL ?= \
92# Additional settings for ert. 92# Additional settings for ert.
93ert_opts = 93ert_opts =
94 94
95# Supply a path to local tree-sitter installations, as we run tests
96# without a valid HOME.
97ert_opts += --eval "(setq treesit-extra-load-path '(\"$(HOME)/.emacs.d/tree-sitter\"))"
98
95# Maximum length of lines in ert backtraces; nil for no limit. 99# Maximum length of lines in ert backtraces; nil for no limit.
96# (if empty, use the default ert-batch-backtrace-right-margin). 100# (if empty, use the default ert-batch-backtrace-right-margin).
97TEST_BACKTRACE_LINE_LENGTH = 101TEST_BACKTRACE_LINE_LENGTH =