Subject: bug#36940: tests slowness and failure after recent Tramp changes

From: Michael Albinus <[email-masked]>
Date: Mon, 26 Aug 2019 17:09:28 +0200

Stefan Kangas <[email-masked]> writes:

Hi Stefan,

> Absolutely.  On current master (commit f87ace2aed), I'm now seeing:
>
> 3 unexpected results:
>    FAILED  tramp-test41-utf8
>    FAILED  tramp-test41-utf8-with-ls
>    FAILED  tramp-test41-utf8-with-perl

Well, so we've fixed tramp-test19-directory-files-and-attributes at least.
Progress!

> Test tramp-test41-utf8 condition:
>     (search-failed "^VAR_971C287AFA5BBEDD54ACB58B1CE718B4=Γυρίστε το Γαλαξία με Ώτο Στοπ$")
>    FAILED  58/67  tramp-test41-utf8 (35.618526 sec)

Hmm, the string is still decomposed. Let's give it a last try, writing
some traces. Could you pls apply the patch, and send the result. You
could call

make -C test lisp/net/tramp-tests.log SELECTOR='tramp-test41-utf8'

diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 9930a2c9e1..69dadcd107 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -5288,6 +5288,14 @@ tramp--test-check-files
 		  (setenv "PS1")
 		  (with-temp-buffer
 		    (should (zerop (process-file "env" nil t nil)))
+                    (tramp--test-message
+                     "coding-sytem: `%s' `%s'"
+                     coding-system-for-read coding-system-for-write )
+                    (tramp--test-message "search: `%s'" (getenv envvar))
+                    (let ((coding-system-for-read 'no-conversion)
+                          (coding-system-for-write 'no-conversion))
+                      (tramp--test-message "search: `%s'" (getenv envvar))
+                      (tramp--test-message "buffer: `%s'" (buffer-string)))
 		    (goto-char (point-min))
 		    (should
 		     (re-search-forward

Best regards, Michael.