diff options
| author | Michael Albinus | 2019-03-22 14:38:06 +0100 |
|---|---|---|
| committer | Michael Albinus | 2019-03-22 14:38:06 +0100 |
| commit | 3375d08299bbc1e224d19a871012cdbbf5d787ee (patch) | |
| tree | 8b97fff7350b084dfda07955ed9c75791f7666da /test/lisp | |
| parent | 4174409c53d85a0def138f92d3e71901380c907a (diff) | |
| download | emacs-3375d08299bbc1e224d19a871012cdbbf5d787ee.tar.gz emacs-3375d08299bbc1e224d19a871012cdbbf5d787ee.zip | |
Fix Bug#24394, Bug#34172
* lisp/subr.el (process-file-shell-command):
Use `with-connection-local-variables'. Do not set "/bin/sh" for
remote buffers, trust settings of `shell-file-name'.
* lisp/net/tramp-adb.el (tramp-methods) <adb>:
* lisp/net/tramp-smb.el (tramp-methods) <smb>:
Remove `tramp-remote-shell' and `tramp-remote-shell-args'.
* lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch)
(tramp-maybe-open-connection): Use proper read syntax for function
names.
* lisp/net/tramp.el (tramp-handle-shell-command): Do not use shell
file names from `tramp-methods'.
Respect `async-shell-command-buffer'. (Bug#24394, Bug#34172)
Use `start-file-process-shell-command' and `process-file-shell-command'.
* test/lisp/net/tramp-tests.el (tramp-test32-shell-command):
Let it run partly for tramp-adb.
Diffstat (limited to 'test/lisp')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index bf7cdfafabe..34b676ee324 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -4065,7 +4065,10 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4065 | "Check `shell-command'." | 4065 | "Check `shell-command'." |
| 4066 | :tags '(:expensive-test) | 4066 | :tags '(:expensive-test) |
| 4067 | (skip-unless (tramp--test-enabled)) | 4067 | (skip-unless (tramp--test-enabled)) |
| 4068 | (skip-unless (tramp--test-sh-p)) | 4068 | ;; Prior Emacs 27, `shell-file-name' was hard coded as "/bin/sh" for |
| 4069 | ;; remote processes in Emacs. That doesn't work for tramp-adb.el. | ||
| 4070 | (skip-unless (or (and (tramp--test-adb-p) (tramp--test-emacs27-p)) | ||
| 4071 | (tramp--test-sh-p))) | ||
| 4069 | 4072 | ||
| 4070 | (dolist (quoted (if (tramp--test-expensive-test) '(nil t) '(nil))) | 4073 | (dolist (quoted (if (tramp--test-expensive-test) '(nil t) '(nil))) |
| 4071 | (let ((tmp-name (tramp--test-make-temp-name nil quoted)) | 4074 | (let ((tmp-name (tramp--test-make-temp-name nil quoted)) |
| @@ -4093,6 +4096,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4093 | ;; Cleanup. | 4096 | ;; Cleanup. |
| 4094 | (ignore-errors (delete-file tmp-name))) | 4097 | (ignore-errors (delete-file tmp-name))) |
| 4095 | 4098 | ||
| 4099 | ;; tramp-adb.el is not fit yet for asynchronous processes. | ||
| 4100 | (unless (tramp--test-adb-p) | ||
| 4096 | (unwind-protect | 4101 | (unwind-protect |
| 4097 | (with-temp-buffer | 4102 | (with-temp-buffer |
| 4098 | (write-region "foo" nil tmp-name) | 4103 | (write-region "foo" nil tmp-name) |
| @@ -4119,8 +4124,10 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4119 | (buffer-string)))) | 4124 | (buffer-string)))) |
| 4120 | 4125 | ||
| 4121 | ;; Cleanup. | 4126 | ;; Cleanup. |
| 4122 | (ignore-errors (delete-file tmp-name))) | 4127 | (ignore-errors (delete-file tmp-name)))) |
| 4123 | 4128 | ||
| 4129 | ;; tramp-adb.el is not fit yet for asynchronous processes. | ||
| 4130 | (unless (tramp--test-adb-p) | ||
| 4124 | (unwind-protect | 4131 | (unwind-protect |
| 4125 | (with-temp-buffer | 4132 | (with-temp-buffer |
| 4126 | (write-region "foo" nil tmp-name) | 4133 | (write-region "foo" nil tmp-name) |
| @@ -4148,7 +4155,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4148 | (buffer-string)))) | 4155 | (buffer-string)))) |
| 4149 | 4156 | ||
| 4150 | ;; Cleanup. | 4157 | ;; Cleanup. |
| 4151 | (ignore-errors (delete-file tmp-name)))))) | 4158 | (ignore-errors (delete-file tmp-name))))))) |
| 4152 | 4159 | ||
| 4153 | (defun tramp--test-shell-command-to-string-asynchronously (command) | 4160 | (defun tramp--test-shell-command-to-string-asynchronously (command) |
| 4154 | "Like `shell-command-to-string', but for asynchronous processes." | 4161 | "Like `shell-command-to-string', but for asynchronous processes." |
| @@ -5705,6 +5712,9 @@ Since it unloads Tramp, it shall be the last test to run." | |||
| 5705 | ;; do not work properly for `nextcloud'. | 5712 | ;; do not work properly for `nextcloud'. |
| 5706 | ;; * Fix `tramp-test29-start-file-process' and | 5713 | ;; * Fix `tramp-test29-start-file-process' and |
| 5707 | ;; `tramp-test30-make-process' on MS Windows (`process-send-eof'?). | 5714 | ;; `tramp-test30-make-process' on MS Windows (`process-send-eof'?). |
| 5715 | ;; * Fix `tramp-test29-start-file-process', | ||
| 5716 | ;; `tramp-test30-make-process' and `tramp-test32-shell-command' for | ||
| 5717 | ;; `adb' (see comment in `tramp-adb-send-command'). | ||
| 5708 | ;; * Fix Bug#16928 in `tramp-test43-asynchronous-requests'. | 5718 | ;; * Fix Bug#16928 in `tramp-test43-asynchronous-requests'. |
| 5709 | 5719 | ||
| 5710 | (provide 'tramp-tests) | 5720 | (provide 'tramp-tests) |