From 48f3bfb8b987b19cbecce592e9195b8a8a743c08 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Sun, 9 Apr 2023 20:28:32 +0100 Subject: [PATCH] Tweak ert-remote-temporary-file-directory in tests * lisp/emacs-lisp/ert-x.el (ert-remote-temporary-file-directory): Don't add trailing slash to HOME (bug#61637). Reindent docstring. --- lisp/emacs-lisp/ert-x.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/emacs-lisp/ert-x.el b/lisp/emacs-lisp/ert-x.el index 98a017c8a8e..e8b0dd92989 100644 --- a/lisp/emacs-lisp/ert-x.el +++ b/lisp/emacs-lisp/ert-x.el @@ -563,9 +563,9 @@ The same keyword arguments are supported as in ;; Emacs's Makefile sets $HOME to a nonexistent value. Needed ;; in batch mode only, therefore. (when (and noninteractive (not (file-directory-p "~/"))) - (setenv "HOME" temporary-file-directory)) + (setenv "HOME" (directory-file-name temporary-file-directory))) (format "/mock::%s" temporary-file-directory)))) - "Temporary directory for remote file tests.") + "Temporary directory for remote file tests.") (provide 'ert-x) -- 2.39.2