From 7f952a4fe74d6e0bf33944bceb9735fb795db9ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 23 Jan 2025 11:20:38 +0000 Subject: [PATCH] Eglot: skip Tramp tests except on Emacs 28+ * test/lisp/progmodes/eglot-tests.el (eglot--call-with-tramp-test): Fix (cherry picked from commit c888e726ca9092fedd98e80e40c28b0fa54a34be) --- test/lisp/progmodes/eglot-tests.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/lisp/progmodes/eglot-tests.el b/test/lisp/progmodes/eglot-tests.el index cc269abea08..eec076da723 100644 --- a/test/lisp/progmodes/eglot-tests.el +++ b/test/lisp/progmodes/eglot-tests.el @@ -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 -- 2.39.5