]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix tramp-test.el (don't merge with master)
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 28 Sep 2023 07:56:13 +0000 (09:56 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 28 Sep 2023 07:56:13 +0000 (09:56 +0200)
* test/lisp/net/tramp-tests.el (tramp--test-check-files):
Don't err out when "printenv" doesn't exist on remote side.

test/lisp/net/tramp-tests.el

index 24f17c2cf7415e216f7e06a0636e06fe4105e1af..0648fe9e80f26ccb46bc4bfa39d85cfb7ac7e56e 100644 (file)
@@ -7384,13 +7384,13 @@ This requires restrictions of file name syntax."
                  ;; of process output.  So we unset it temporarily.
                  (setenv "PS1")
                  (with-temp-buffer
-                   (should (zerop (process-file "printenv" nil t nil)))
-                   (goto-char (point-min))
-                   (should
-                    (re-search-forward
-                     (tramp-compat-rx
-                      bol (literal envvar)
-                      "=" (literal (getenv envvar)) eol))))))))
+                   (when (zerop (process-file "printenv" nil t nil))
+                     (goto-char (point-min))
+                     (should
+                      (re-search-forward
+                       (tramp-compat-rx
+                        bol (literal envvar)
+                        "=" (literal (getenv envvar)) eol)))))))))
 
        ;; Cleanup.
        (ignore-errors (kill-buffer buffer))