]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak ert-remote-temporary-file-directory in tests
authorBasil L. Contovounesios <contovob@tcd.ie>
Sun, 9 Apr 2023 19:28:32 +0000 (20:28 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Sun, 9 Apr 2023 19:28:32 +0000 (20:28 +0100)
* 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

index 98a017c8a8ebd447f0968646cb643776ad03d27d..e8b0dd929894791c0dc2b28bfba8d5a1c071fe05 100644 (file)
@@ -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)