aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichael Albinus2019-12-01 12:25:15 +0100
committerMichael Albinus2019-12-01 12:25:15 +0100
commitec65b9adbeffe8f9b568a79a694ce681d2519a1a (patch)
treee76efe6cf6cfcdd846175331563c6f243ae4cece /test
parenteb452dfe95320fb0226af601537b98ee7945f12e (diff)
downloademacs-ec65b9adbeffe8f9b568a79a694ce681d2519a1a.tar.gz
emacs-ec65b9adbeffe8f9b568a79a694ce681d2519a1a.zip
Suppress superfluous messages in tramp-tests
* test/lisp/net/tramp-tests.el (tramp-test10-write-region) (tramp-test10-write-region-file-precious-flag) (tramp-test34-connection-local-variables) (tramp-test36-vc-registered): Let-bind `inhibit-message'.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/net/tramp-archive-tests.el4
-rw-r--r--test/lisp/net/tramp-tests.el6
2 files changed, 7 insertions, 3 deletions
diff --git a/test/lisp/net/tramp-archive-tests.el b/test/lisp/net/tramp-archive-tests.el
index 80bc9ccaae2..7de9589e895 100644
--- a/test/lisp/net/tramp-archive-tests.el
+++ b/test/lisp/net/tramp-archive-tests.el
@@ -58,11 +58,11 @@
58 "A directory file name, which looks like an archive.") 58 "A directory file name, which looks like an archive.")
59 59
60(setq password-cache-expiry nil 60(setq password-cache-expiry nil
61 tramp-verbose 0
62 tramp-cache-read-persistent-data t ;; For auth-sources. 61 tramp-cache-read-persistent-data t ;; For auth-sources.
63 tramp-copy-size-limit nil 62 tramp-copy-size-limit nil
64 tramp-message-show-message nil 63 tramp-message-show-message nil
65 tramp-persistency-file-name nil) 64 tramp-persistency-file-name nil
65 tramp-verbose 0)
66 66
67(defun tramp-archive--test-make-temp-name () 67(defun tramp-archive--test-make-temp-name ()
68 "Return a temporary file name for test. 68 "Return a temporary file name for test.
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 9b1af1b28bc..09ba928c892 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -2233,7 +2233,8 @@ This checks also `file-name-as-directory', `file-name-directory',
2233 (skip-unless (tramp--test-enabled)) 2233 (skip-unless (tramp--test-enabled))
2234 2234
2235 (dolist (quoted (if (tramp--test-expensive-test) '(nil t) '(nil))) 2235 (dolist (quoted (if (tramp--test-expensive-test) '(nil t) '(nil)))
2236 (let ((tmp-name (tramp--test-make-temp-name nil quoted))) 2236 (let ((tmp-name (tramp--test-make-temp-name nil quoted))
2237 (inhibit-message t))
2237 (unwind-protect 2238 (unwind-protect
2238 (progn 2239 (progn
2239 ;; Write buffer. Use absolute and relative file name. 2240 ;; Write buffer. Use absolute and relative file name.
@@ -2332,6 +2333,7 @@ This checks also `file-name-as-directory', `file-name-directory',
2332 (skip-unless (tramp--test-emacs27-p)) 2333 (skip-unless (tramp--test-emacs27-p))
2333 2334
2334 (let* ((tmp-name (tramp--test-make-temp-name)) 2335 (let* ((tmp-name (tramp--test-make-temp-name))
2336 (inhibit-message t)
2335 written-files 2337 written-files
2336 (advice (lambda (_start _end filename &rest _r) 2338 (advice (lambda (_start _end filename &rest _r)
2337 (push filename written-files)))) 2339 (push filename written-files))))
@@ -4566,6 +4568,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
4566 (tmp-name2 (expand-file-name "foo" tmp-name1)) 4568 (tmp-name2 (expand-file-name "foo" tmp-name1))
4567 (enable-local-variables :all) 4569 (enable-local-variables :all)
4568 (enable-remote-dir-locals t) 4570 (enable-remote-dir-locals t)
4571 (inhibit-message t)
4569 kill-buffer-query-functions 4572 kill-buffer-query-functions
4570 connection-local-profile-alist connection-local-criteria-alist) 4573 connection-local-profile-alist connection-local-criteria-alist)
4571 (unwind-protect 4574 (unwind-protect
@@ -4797,6 +4800,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
4797 (tmp-name1 (tramp--test-make-temp-name nil quoted)) 4800 (tmp-name1 (tramp--test-make-temp-name nil quoted))
4798 (tmp-name2 (expand-file-name "foo" tmp-name1)) 4801 (tmp-name2 (expand-file-name "foo" tmp-name1))
4799 (tramp-remote-process-environment tramp-remote-process-environment) 4802 (tramp-remote-process-environment tramp-remote-process-environment)
4803 (inhibit-message t)
4800 (vc-handled-backends 4804 (vc-handled-backends
4801 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil 4805 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil
4802 (cond 4806 (cond