]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: skip Tramp tests except on Emacs 28+
authorJoão Távora <joaotavora@gmail.com>
Thu, 23 Jan 2025 11:20:38 +0000 (11:20 +0000)
committerEshel Yaron <me@eshelyaron.com>
Sat, 25 Jan 2025 17:43:12 +0000 (18:43 +0100)
* test/lisp/progmodes/eglot-tests.el
(eglot--call-with-tramp-test): Fix

(cherry picked from commit c888e726ca9092fedd98e80e40c28b0fa54a34be)

test/lisp/progmodes/eglot-tests.el

index cc269abea082be7d1fdc8d518857574f6b9772b8..eec076da7238fb52878f46f8e0a76da9aed6bf99 100644 (file)
@@ -1421,6 +1421,8 @@ GUESSED-MAJOR-MODES-SYM are bound to the useful return values of
 
 (defvar tramp-histfile-override)
 (defun eglot--call-with-tramp-test (fn)
+  (unless (>= emacs-major-version 28)
+    (ert-skip "Tramp tests only work reliably on Emacs 28+"))
   ;; Set up a Tramp method that’s just a shell so the remote host is
   ;; really just the local host.
   (let* ((tramp-remote-path (cons 'tramp-own-remote-path