]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle case remote uid is 0 in some Tramp related tests
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 19 Jun 2021 08:35:06 +0000 (10:35 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 19 Jun 2021 08:35:06 +0000 (10:35 +0200)
* test/lisp/filenotify-tests.el:
* test/lisp/shadowfile-tests.el:
Set `tramp-allow-unsafe-temporary-files' to t.

test/lisp/filenotify-tests.el
test/lisp/shadowfile-tests.el

index 13350b244223f9a5d96e084180768d077e90a184..e0fa66a5d99466076d333d8101287c0a0a21c7a7 100644 (file)
@@ -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")
index 7b9c2ff63b2136760fe36492b80b328a86ddbd09..7c9d05ac1c756704804c84d82ad0a7579932b0ce 100644 (file)
@@ -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