emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master e6a700a: Handle case remote uid is 0 in some Tramp related tests


From: Michael Albinus
Subject: master e6a700a: Handle case remote uid is 0 in some Tramp related tests
Date: Sat, 19 Jun 2021 04:35:14 -0400 (EDT)

branch: master
commit e6a700a28e87a9ba4eb90fb6e455581d68ea61ec
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    Handle case remote uid is 0 in some Tramp related tests
    
    * test/lisp/filenotify-tests.el:
    * test/lisp/shadowfile-tests.el:
    Set `tramp-allow-unsafe-temporary-files' to t.
---
 test/lisp/filenotify-tests.el | 5 ++++-
 test/lisp/shadowfile-tests.el | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/test/lisp/filenotify-tests.el b/test/lisp/filenotify-tests.el
index 13350b2..e0fa66a 100644
--- a/test/lisp/filenotify-tests.el
+++ b/test/lisp/filenotify-tests.el
@@ -200,7 +200,10 @@ Return nil when any other file notification watch is still 
active."
 
 (setq file-notify-debug nil
       password-cache-expiry nil
-      tramp-verbose 0)
+      tramp-verbose 0
+      ;; When the remote user id is 0, Tramp refuses unsafe temporary files.
+      tramp-allow-unsafe-temporary-files
+      (or tramp-allow-unsafe-temporary-files noninteractive))
 
 ;; This should happen on hydra only.
 (when (getenv "EMACS_HYDRA_CI")
diff --git a/test/lisp/shadowfile-tests.el b/test/lisp/shadowfile-tests.el
index 7b9c2ff..7c9d05a 100644
--- a/test/lisp/shadowfile-tests.el
+++ b/test/lisp/shadowfile-tests.el
@@ -72,6 +72,9 @@
 (setq password-cache-expiry nil
       shadow-debug (getenv "EMACS_HYDRA_CI")
       tramp-verbose 0
+      ;; When the remote user id is 0, Tramp refuses unsafe temporary files.
+      tramp-allow-unsafe-temporary-files
+      (or tramp-allow-unsafe-temporary-files noninteractive)
       ;; On macOS, `temporary-file-directory' is a symlinked directory.
       temporary-file-directory (file-truename temporary-file-directory)
       shadow-test-remote-temporary-file-directory



reply via email to

[Prev in Thread] Current Thread [Next in Thread]