[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 48f3bfb8b98 1/2: Tweak ert-remote-temporary-file-directory in tes
From: |
Basil L. Contovounesios |
Subject: |
master 48f3bfb8b98 1/2: Tweak ert-remote-temporary-file-directory in tests |
Date: |
Sun, 9 Apr 2023 18:57:10 -0400 (EDT) |
branch: master
commit 48f3bfb8b987b19cbecce592e9195b8a8a743c08
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
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)