]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix logic of $HOME adjustment for 'ert-remote-temporary-file-directory'
authorJim Porter <jporterbugs@gmail.com>
Mon, 3 Oct 2022 01:19:56 +0000 (18:19 -0700)
committerJim Porter <jporterbugs@gmail.com>
Tue, 4 Oct 2022 00:42:37 +0000 (17:42 -0700)
* lisp/emacs-lisp/ert-x.el (ert-remote-temporary-file-directory): Only
adjust $HOME when it doesn't exist (bug#58265).

lisp/emacs-lisp/ert-x.el

index bfd796586da1e24af31844dbcdea9b7d354ecca0..a891f068a70b87cf40351f81030ec628a4982c34 100644 (file)
@@ -568,7 +568,7 @@ The same keyword arguments are supported as in
          `("\\`mock\\'" nil ,(system-name)))
         ;; Emacs's Makefile sets $HOME to a nonexistent value.  Needed
         ;; in batch mode only, therefore.
-        (unless (and (null noninteractive) (file-directory-p "~/"))
+        (when (and noninteractive (not (file-directory-p "~/")))
           (setenv "HOME" temporary-file-directory))
         (format "/mock::%s" temporary-file-directory))))
     "Temporary directory for remote file tests.")