* test/lisp/net/tramp-tests.el (tramp-test32-shell-command): Fix test.

This commit is contained in:
Michael Albinus 2022-12-30 09:26:56 +01:00
parent ebf65c7e7e
commit 39265abf0c

View file

@ -5503,15 +5503,11 @@ INPUT, if non-nil, is a string sent to the process."
;; String to be sent. ;; String to be sent.
(format "%s\n" (file-name-nondirectory tmp-name))) (format "%s\n" (file-name-nondirectory tmp-name)))
(should (should
(string-equal (string-match-p
;; tramp-adb.el echoes, so we must add the string. ;; Some shells echo, for example the "adb" or "docker" methods.
(if (and (tramp--test-adb-p) (tramp-compat-rx
(not (tramp-direct-async-process-p))) bos (** 1 2 (literal (file-name-nondirectory tmp-name)) "\n")
(format eos)
"%s\n%s\n"
(file-name-nondirectory tmp-name)
(file-name-nondirectory tmp-name))
(format "%s\n" (file-name-nondirectory tmp-name)))
(buffer-string)))) (buffer-string))))
;; Cleanup. ;; Cleanup.