]> git.eshelyaron.com Git - emacs.git/commitdiff
Check before using bleeding edge ERT sym in Eglot tests
authorJoão Távora <joaotavora@gmail.com>
Tue, 14 Mar 2023 19:43:04 +0000 (19:43 +0000)
committerJoão Távora <joaotavora@gmail.com>
Tue, 14 Mar 2023 19:59:12 +0000 (19:59 +0000)
Else, these tests won't run on Emacs versions that Eglot runs on, like
26.3.

* test/lisp/progmodes/eglot-tests.el
(eglot--call-with-tramp-test):  check for
ert-remote-temporary-file-directory before using.

test/lisp/progmodes/eglot-tests.el

index 7a90d68d213c607fde240a68a0596dd5e4fd1713..9cb6befa993b3fe3bee9c75d37cf3025dfa8433f 100644 (file)
@@ -1262,7 +1262,9 @@ macro will assume it exists."
   (let* ((tramp-remote-path (cons 'tramp-own-remote-path tramp-remote-path))
          (tramp-histfile-override t)
          (tramp-verbose 1)
-         (temporary-file-directory ert-remote-temporary-file-directory)
+         (temporary-file-directory
+          (or (bound-and-true-p ert-remote-temporary-file-directory)
+              temporary-file-directory))
          (default-directory temporary-file-directory))
     ;; We must check the remote LSP server.  So far, just "clangd" is used.
     (unless (executable-find "clangd" 'remote)