diff options
| author | Michael Albinus | 2021-06-19 10:35:06 +0200 |
|---|---|---|
| committer | Michael Albinus | 2021-06-19 10:35:06 +0200 |
| commit | e6a700a28e87a9ba4eb90fb6e455581d68ea61ec (patch) | |
| tree | 1a52a7c06fe1053aa7fbb218f800c9562598af45 | |
| parent | b9f339e8f8f6194001ca2f00d9d172851ca482bd (diff) | |
| download | emacs-e6a700a28e87a9ba4eb90fb6e455581d68ea61ec.tar.gz emacs-e6a700a28e87a9ba4eb90fb6e455581d68ea61ec.zip | |
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.
| -rw-r--r-- | test/lisp/filenotify-tests.el | 5 | ||||
| -rw-r--r-- | test/lisp/shadowfile-tests.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/lisp/filenotify-tests.el b/test/lisp/filenotify-tests.el index 13350b24422..e0fa66a5d99 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." | |||
| 200 | 200 | ||
| 201 | (setq file-notify-debug nil | 201 | (setq file-notify-debug nil |
| 202 | password-cache-expiry nil | 202 | password-cache-expiry nil |
| 203 | tramp-verbose 0) | 203 | tramp-verbose 0 |
| 204 | ;; When the remote user id is 0, Tramp refuses unsafe temporary files. | ||
| 205 | tramp-allow-unsafe-temporary-files | ||
| 206 | (or tramp-allow-unsafe-temporary-files noninteractive)) | ||
| 204 | 207 | ||
| 205 | ;; This should happen on hydra only. | 208 | ;; This should happen on hydra only. |
| 206 | (when (getenv "EMACS_HYDRA_CI") | 209 | (when (getenv "EMACS_HYDRA_CI") |
diff --git a/test/lisp/shadowfile-tests.el b/test/lisp/shadowfile-tests.el index 7b9c2ff63b2..7c9d05ac1c7 100644 --- a/test/lisp/shadowfile-tests.el +++ b/test/lisp/shadowfile-tests.el | |||
| @@ -72,6 +72,9 @@ | |||
| 72 | (setq password-cache-expiry nil | 72 | (setq password-cache-expiry nil |
| 73 | shadow-debug (getenv "EMACS_HYDRA_CI") | 73 | shadow-debug (getenv "EMACS_HYDRA_CI") |
| 74 | tramp-verbose 0 | 74 | tramp-verbose 0 |
| 75 | ;; When the remote user id is 0, Tramp refuses unsafe temporary files. | ||
| 76 | tramp-allow-unsafe-temporary-files | ||
| 77 | (or tramp-allow-unsafe-temporary-files noninteractive) | ||
| 75 | ;; On macOS, `temporary-file-directory' is a symlinked directory. | 78 | ;; On macOS, `temporary-file-directory' is a symlinked directory. |
| 76 | temporary-file-directory (file-truename temporary-file-directory) | 79 | temporary-file-directory (file-truename temporary-file-directory) |
| 77 | shadow-test-remote-temporary-file-directory | 80 | shadow-test-remote-temporary-file-directory |