diff options
| author | Michael Albinus | 2023-05-16 17:19:20 +0200 |
|---|---|---|
| committer | Michael Albinus | 2023-05-16 17:19:20 +0200 |
| commit | 2b1e81df06dcca5212dd4887ea09db0544f6e11b (patch) | |
| tree | 6de1d6bf79b2f300b945949f3deeeedbbc12c755 /test | |
| parent | f836452beb0b1e1e11f297f448f452c01a8fa385 (diff) | |
| download | emacs-2b1e81df06dcca5212dd4887ea09db0544f6e11b.tar.gz emacs-2b1e81df06dcca5212dd4887ea09db0544f6e11b.zip | |
Tweak tramp-test45-asynchronous-requests
* test/lisp/net/tramp-tests.el (tramp-use-connection-share): Declare.
(tramp--test-putty-p): New defun.
(tramp-test45-asynchronous-requests): Tweak test.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 840decbf5d5..6c773908e26 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -73,6 +73,7 @@ | |||
| 73 | (defvar tramp-persistency-file-name) | 73 | (defvar tramp-persistency-file-name) |
| 74 | (defvar tramp-remote-path) | 74 | (defvar tramp-remote-path) |
| 75 | (defvar tramp-remote-process-environment) | 75 | (defvar tramp-remote-process-environment) |
| 76 | (defvar tramp-use-connection-share) | ||
| 76 | 77 | ||
| 77 | ;; Needed for Emacs 27. | 78 | ;; Needed for Emacs 27. |
| 78 | (defvar lock-file-name-transforms) | 79 | (defvar lock-file-name-transforms) |
| @@ -6933,6 +6934,13 @@ This does not support external Emacs calls." | |||
| 6933 | "Check, whether an out-of-band method is used." | 6934 | "Check, whether an out-of-band method is used." |
| 6934 | (tramp-method-out-of-band-p tramp-test-vec 1)) | 6935 | (tramp-method-out-of-band-p tramp-test-vec 1)) |
| 6935 | 6936 | ||
| 6937 | (defun tramp--test-putty-p () | ||
| 6938 | "Check, whether the method method usaes PuTTY. | ||
| 6939 | This does not support connection share for more than two connections." | ||
| 6940 | (member | ||
| 6941 | (file-remote-p ert-remote-temporary-file-directory 'method) | ||
| 6942 | '("plink" "plinkx" "pscp" "psftp"))) | ||
| 6943 | |||
| 6936 | (defun tramp--test-rclone-p () | 6944 | (defun tramp--test-rclone-p () |
| 6937 | "Check, whether the remote host is offered by rclone. | 6945 | "Check, whether the remote host is offered by rclone. |
| 6938 | This requires restrictions of file name syntax." | 6946 | This requires restrictions of file name syntax." |
| @@ -7486,6 +7494,10 @@ process sentinels. They shall not disturb each other." | |||
| 7486 | (string-to-number (getenv "REMOTE_PARALLEL_PROCESSES")))) | 7494 | (string-to-number (getenv "REMOTE_PARALLEL_PROCESSES")))) |
| 7487 | ((getenv "EMACS_HYDRA_CI") 5) | 7495 | ((getenv "EMACS_HYDRA_CI") 5) |
| 7488 | (t 10))) | 7496 | (t 10))) |
| 7497 | ;; PuTTY-based methods can only share up to 10 connections. | ||
| 7498 | (tramp-use-connection-share | ||
| 7499 | (if (and (tramp--test-putty-p) (>= number-proc 10)) | ||
| 7500 | 'suppress (bound-and-true-p tramp-use-connection-share))) | ||
| 7489 | ;; On hydra, timings are bad. | 7501 | ;; On hydra, timings are bad. |
| 7490 | (timer-repeat | 7502 | (timer-repeat |
| 7491 | (cond | 7503 | (cond |