aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2023-01-13 19:35:52 +0100
committerMichael Albinus2023-01-13 19:35:52 +0100
commit9f8f8ed1bafba97ac942ee03645fa60c67fdfce7 (patch)
tree65264aad612594bec5ffb69aae69e490a796dd0d
parent861556c1339cd65842ec3e24ba48590e6b72bd48 (diff)
downloademacs-9f8f8ed1bafba97ac942ee03645fa60c67fdfce7.tar.gz
emacs-9f8f8ed1bafba97ac942ee03645fa60c67fdfce7.zip
Adapt tramp-tests.el (do not merge with master)
* test/lisp/net/tramp-tests.el (tramp--test-container-p): Rename from `tramp--test-docker-p'. Handle also "podman" method. Adapt callees.
-rw-r--r--test/lisp/net/tramp-tests.el19
1 files changed, 11 insertions, 8 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index a3d7d9f656b..0f21e3a45eb 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -5504,7 +5504,7 @@ INPUT, if non-nil, is a string sent to the process."
5504 (format "%s\n" (file-name-nondirectory tmp-name))) 5504 (format "%s\n" (file-name-nondirectory tmp-name)))
5505 (should 5505 (should
5506 (string-match-p 5506 (string-match-p
5507 ;; Some shells echo, for example the "adb" or "docker" methods. 5507 ;; Some shells echo, for example the "adb" or container methods.
5508 (tramp-compat-rx 5508 (tramp-compat-rx
5509 bos (** 1 2 (literal (file-name-nondirectory tmp-name)) "\n") 5509 bos (** 1 2 (literal (file-name-nondirectory tmp-name)) "\n")
5510 eos) 5510 eos)
@@ -6637,11 +6637,12 @@ This is used in tests which we don't want to tag
6637 "Check, whether the remote directory is encrypted." 6637 "Check, whether the remote directory is encrypted."
6638 (tramp-crypt-file-name-p ert-remote-temporary-file-directory)) 6638 (tramp-crypt-file-name-p ert-remote-temporary-file-directory))
6639 6639
6640(defun tramp--test-docker-p () 6640(defun tramp--test-container-p ()
6641 "Check, whether the docker method is used. 6641 "Check, whether a container method is used.
6642This does not support some special file names." 6642This does not support some special file names."
6643 (string-equal 6643 (string-match-p
6644 "docker" (file-remote-p ert-remote-temporary-file-directory 'method))) 6644 (rx bol (| "docker" "podman") eol)
6645 (file-remote-p ert-remote-temporary-file-directory 'method)))
6645 6646
6646(defun tramp--test-expensive-test-p () 6647(defun tramp--test-expensive-test-p ()
6647 "Whether expensive tests are run. 6648 "Whether expensive tests are run.
@@ -7026,7 +7027,7 @@ This requires restrictions of file name syntax."
7026 (let ((files 7027 (let ((files
7027 (list 7028 (list
7028 (cond ((or (tramp--test-ange-ftp-p) 7029 (cond ((or (tramp--test-ange-ftp-p)
7029 (tramp--test-docker-p) 7030 (tramp--test-container-p)
7030 (tramp--test-gvfs-p) 7031 (tramp--test-gvfs-p)
7031 (tramp--test-rclone-p) 7032 (tramp--test-rclone-p)
7032 (tramp--test-sudoedit-p) 7033 (tramp--test-sudoedit-p)
@@ -7084,7 +7085,7 @@ This requires restrictions of file name syntax."
7084 "Check UTF8 encoding in file names and file contents." 7085 "Check UTF8 encoding in file names and file contents."
7085 (skip-unless (tramp--test-enabled)) 7086 (skip-unless (tramp--test-enabled))
7086 (skip-unless (not (getenv "EMACS_HYDRA_CI"))) ; SLOW ~ 620s 7087 (skip-unless (not (getenv "EMACS_HYDRA_CI"))) ; SLOW ~ 620s
7087 (skip-unless (not (tramp--test-docker-p))) 7088 (skip-unless (not (tramp--test-container-p)))
7088 (skip-unless (not (tramp--test-rsync-p))) 7089 (skip-unless (not (tramp--test-rsync-p)))
7089 (skip-unless (not (tramp--test-windows-nt-and-out-of-band-p))) 7090 (skip-unless (not (tramp--test-windows-nt-and-out-of-band-p)))
7090 (skip-unless (not (tramp--test-ksh-p))) 7091 (skip-unless (not (tramp--test-ksh-p)))
@@ -7213,7 +7214,7 @@ process sentinels. They shall not disturb each other."
7213 ;; remote processes in Emacs. That doesn't work for tramp-adb.el. 7214 ;; remote processes in Emacs. That doesn't work for tramp-adb.el.
7214 (when (tramp--test-adb-p) 7215 (when (tramp--test-adb-p)
7215 (skip-unless (tramp--test-emacs27-p))) 7216 (skip-unless (tramp--test-emacs27-p)))
7216 (skip-unless (not (tramp--test-docker-p))) 7217 (skip-unless (not (tramp--test-container-p)))
7217 (skip-unless (not (tramp--test-telnet-p))) 7218 (skip-unless (not (tramp--test-telnet-p)))
7218 (skip-unless (not (tramp--test-sshfs-p))) 7219 (skip-unless (not (tramp--test-sshfs-p)))
7219 (skip-unless (not (tramp--test-windows-nt-p))) 7220 (skip-unless (not (tramp--test-windows-nt-p)))
@@ -7703,6 +7704,8 @@ If INTERACTIVE is non-nil, the tests are run interactively."
7703;; * file-equal-p (partly done in `tramp-test21-file-links') 7704;; * file-equal-p (partly done in `tramp-test21-file-links')
7704;; * file-in-directory-p 7705;; * file-in-directory-p
7705;; * file-name-case-insensitive-p 7706;; * file-name-case-insensitive-p
7707;; * memory-info
7708;; * tramp-get-home-directory
7706;; * tramp-get-remote-gid 7709;; * tramp-get-remote-gid
7707;; * tramp-get-remote-groups 7710;; * tramp-get-remote-groups
7708;; * tramp-get-remote-uid 7711;; * tramp-get-remote-uid