From: Basil L. Contovounesios Date: Sun, 9 Apr 2023 19:28:32 +0000 (+0100) Subject: Tweak ert-remote-temporary-file-directory in tests X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=48f3bfb8b987b19cbecce592e9195b8a8a743c08;p=emacs.git 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. --- 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)